Skip to content

Commit

Permalink
Update output.EMEWS.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkneller authored Mar 7, 2024
1 parent aa6e3e8 commit 6e36e1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/output.EMEWS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ void Initialize_Output(string outputfilenamestem,ofstream &fPvslambda,ofstream &

for(int i=0;i<=NE-1;i++)
{ filename.str("");
filename << outputfilenamestem << string(":E=") << ((NE-1.-i)*EminMeV+i*EmaxMeV)/(NE-1.) << string("MeV:Pvslambda.dat");
if(NE>1){ filename << outputfilenamestem << string(":E=") << ((NE-1.-i)*EminMeV+i*EmaxMeV)/(NE-1.) << string("MeV:Pvsr.dat");}
else{ filename << outputfilenamestem << string(":E=") << EminMeV << string("MeV:Pvsr.dat");}
fPvslambdafilename[i]=filename.str();
fPvslambda.open(fPvslambdafilename[i].c_str()); fPvslambda.close(); // clears the file
}
Expand Down

0 comments on commit 6e36e1b

Please sign in to comment.