mirror of
https://asciireactor.com/otho/cloudy-agn.git
synced 2024-12-05 02:15:09 +00:00
update
This commit is contained in:
parent
131d98213e
commit
949627e64d
@ -18,7 +18,7 @@
|
||||
namespace agn {
|
||||
|
||||
const bool debug = true;
|
||||
const bool line_debug = true;
|
||||
const bool line_debug = false;
|
||||
|
||||
// General constants
|
||||
const double PI=3.14159265358979323846;
|
||||
@ -174,7 +174,7 @@ std::ifstream& operator>> (std::ifstream& inputfile,agn::cloudy_grid& grid) {
|
||||
|
||||
|
||||
|
||||
agn::cloudy_grid agn::read_cloudy_grid(std::ifstream& inputfile) {
|
||||
agn::cloudy_grid agn::read_cloudy_grid(std::ifstream& inputfile, agn::line_list lines_to_print) {
|
||||
if(agn::debug) std::cout
|
||||
<< "Constructing cloudy output grid from file.\n";
|
||||
inputfile.clear();
|
||||
@ -400,5 +400,5 @@ agn::cloudy_grid agn::read_cloudy_grid(std::ifstream& inputfile) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
o
|
||||
#endif
|
||||
|
@ -10,7 +10,7 @@ int main(int argc, char const *argv[]) {
|
||||
<< "Reading cloudy grid from "
|
||||
<< argv[1]
|
||||
<< ".\n";
|
||||
agn::cloudy_grid grid = agn::read_cloudy_grid(cloudy_result_file);
|
||||
agn::cloudy_grid grid = agn::read_cloudy_grid(cloudy_result_file, lines_to_print);
|
||||
|
||||
std::cout
|
||||
<< "Reading line list from "
|
||||
|
Loading…
Reference in New Issue
Block a user