1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00

bit of cleanup in the ART plugin, avoid a few compiler warnings

This commit is contained in:
Oliver Hahn 2012-12-09 16:42:00 +01:00
parent 966e670a9d
commit 025c9fbad0

View file

@ -46,7 +46,7 @@ protected:
id_dm_pos, id_dm_vel, id_gas_pos, id_gas_vel
};
typedef struct io_header
struct header
{
char head[45];
float aexpN; // current expansion factor
@ -93,12 +93,12 @@ protected:
//extras[60]= lux - level of luxury [do not apply in music use 0?]
//extras[79]=Lbox (Mpc/h)
}header;
};
typedef struct io_ptf
struct ptf
{
float astep;
}ptf;
};
header header_;
ptf ptf_;
@ -166,11 +166,11 @@ protected:
// non-public member functions
void write_header_file( void ) //PMcrd.DAT
{
char* fout;
if(do_baryons_){
fout = "/PMcrdIC.DAT";}
else{
fout = "/PMcrd.DAT";}
std::string fout;
if(do_baryons_)
fout = "/PMcrdIC.DAT";
else
fout = "/PMcrd.DAT";
std::string partfname = fname_ + fout;
std::ofstream ofs( partfname.c_str(), std::ios::trunc );
//ofs.open(fname_.c_str(), std::ios::binary|std::ios::trunc );
@ -289,11 +289,11 @@ protected:
void assemble_DM_file( void ) //PMcrs0.DAT
{
// file name
char* fout;
if(do_baryons_) {
fout = "/PMcrs0IC.DAT";}
else {
fout = "/PMcrs0.DAT";}
std::string fout;
if(do_baryons_)
fout = "/PMcrs0IC.DAT";
else
fout = "/PMcrs0.DAT";
std::string partfname = fname_ + fout;
std::ofstream ofs( partfname.c_str(), std::ios::trunc );