Loading src/sphere/sphere.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -204,7 +204,7 @@ void sphere(string config_file, string data_file, string output_path) { double exri = sqrt(sconf->exdc); fprintf(output, " REFR. INDEX OF EXTERNAL MEDIUM=%15.7lE\n", exri); fstream tppoan; string tppoan_name = output_path + "/c_TPPOAN_sph"; string tppoan_name = output_path + "/c_TPPOAN"; tppoan.open(tppoan_name.c_str(), ios::binary|ios::out); if (tppoan.is_open()) { int imode = 10; Loading Loading @@ -286,7 +286,7 @@ void sphere(string config_file, string data_file, string output_path) { // This is the condition that writes the transition matrix to output. int is = 1111; fstream ttms; string ttms_name = output_path + "/c_TTMS_sph"; string ttms_name = output_path + "/c_TTMS"; ttms.open(ttms_name.c_str(), ios::binary | ios::out); if (ttms.is_open()) { ttms.write(reinterpret_cast<char *>(&is), sizeof(int)); Loading Loading
src/sphere/sphere.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -204,7 +204,7 @@ void sphere(string config_file, string data_file, string output_path) { double exri = sqrt(sconf->exdc); fprintf(output, " REFR. INDEX OF EXTERNAL MEDIUM=%15.7lE\n", exri); fstream tppoan; string tppoan_name = output_path + "/c_TPPOAN_sph"; string tppoan_name = output_path + "/c_TPPOAN"; tppoan.open(tppoan_name.c_str(), ios::binary|ios::out); if (tppoan.is_open()) { int imode = 10; Loading Loading @@ -286,7 +286,7 @@ void sphere(string config_file, string data_file, string output_path) { // This is the condition that writes the transition matrix to output. int is = 1111; fstream ttms; string ttms_name = output_path + "/c_TTMS_sph"; string ttms_name = output_path + "/c_TTMS"; ttms.open(ttms_name.c_str(), ios::binary | ios::out); if (ttms.is_open()) { ttms.write(reinterpret_cast<char *>(&is), sizeof(int)); Loading