Function ReadSource

Function Documentation

void ReadSource(double &Source_slope_input, double &Source_intercept_input)

Source Reader contains 2 functions ReadSource that is dedicated to read the source.txt file for SpectralDiffusion 2.0 Solver ReadNonUniformSource that is dedicated to read the non_uniform_source.txt file for SpectralDiffusion NUS Solver.

Reads the source values (slope and intercept) from the “source.txt” file. The slope and intercept can be of any value. SDA 2.0 runs using the values given by the user If the file is source.txt is missing, SDA 1.0 runs (the previous version of the solver) If the file contains 0 for both the slope and intercept, it treats it as a missing file If the slope and intercept are empty, it treats it as a missing file If the slope is empty, by default it is set to 0 If the intercept is empty the intercept will be set to 0

Author

A. Zayat

Author

A. Zayat

Parameters:
  • Source_slope_input – Reference to a double where the source slope value will be stored.

  • Source_intercept_input – Reference to a double where the source intercept value will be stored.