setup to run c17 release grids

This commit is contained in:
caes 2017-06-02 03:24:59 -04:00
parent 29a3f3743a
commit 1acd016d89
5 changed files with 12 additions and 5 deletions

View File

@ -15,4 +15,4 @@ module load openmpi/gnu/1.7.3
# replace ~/cloudy-agn/bin/cloudy_mpi with path to cloudy MPI executable file
cd ~/${RUN_DIR}
time mpirun -machinefile ${PBS_NODEFILE} -np ${num_proc} ~/cloudy-agn/bin/cloudy_mpi -r ${RUN_FILE}
time mpirun -machinefile ${PBS_NODEFILE} -np ${num_proc} ~/cloudy/bin/cloudy_mpi -r ${RUN_FILE}

View File

@ -38,6 +38,10 @@ typedef table2d::iterator iterator2d;
typedef std::pair<double,double> coord2d;
typedef std::list<coord2d> gridcoordlist;
// Seeks an instream to the line after the first occurrence of seek_string.
void seek_to(std::string,std::istream&);
struct cloudy_line_data {
double radiated_energy,eq_width;
int index;
@ -68,12 +72,13 @@ struct cloudy_result {
};
typedef std::map<coord2d,cloudy_result> cloudy_grid;
// Easiest to read the entire grid from the file at once.
cloudy_grid read_cloudy_grid(std::ifstream&);
// Operator<< prints general info about the run result.
std::ostream& operator<< (std::ostream&, cloudy_result);
// Seeks an instream to the line after the first occurrence of seek_string.
void seek_to(std::string,std::istream&);
} // end namespace agn

View File

@ -23,7 +23,8 @@ int main(int argc, char const *argv[]) {
<< "Compiling table2ds for "
<< lines_to_print.size()
<< " emission lines.\n";
std::list<agn::eqwidth_table> tables = agn::compile_eqwidth_tables(grid,lines_to_print,1215.00);
std::list<agn::eqwidth_table> tables =
agn::compile_eqwidth_tables(grid,lines_to_print,1215.00);
// Remove any tables that are zero.
@ -91,7 +92,8 @@ int main(int argc, char const *argv[]) {
<< std::endl
<< "───────────────────────────"
<< std::endl;
std::list<std::string>::iterator caution_it = result_it->second.cautions.begin();
std::list<std::string>::iterator caution_it =
result_it->second.cautions.begin();
while(caution_it != result_it->second.cautions.end()) {
cautionreportfile
<< *caution_it