Commit bf7aa56e authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Remove sph suffix from binary output file names

parent 51701715
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
@@ -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));