mirror of
https://github.com/cosmo-sims/MUSIC.git
synced 2024-09-19 17:03:46 +02:00
Add velocity information output.
This commit is contained in:
parent
b39a91de1d
commit
1846b314ac
1 changed files with 44 additions and 2 deletions
42
src/main.cc
42
src/main.cc
|
@ -751,6 +751,14 @@ int main (int argc, const char * argv[])
|
||||||
double sigv = compute_finest_sigma( data_forIO );
|
double sigv = compute_finest_sigma( data_forIO );
|
||||||
LOGINFO("sigma of %c-velocity of high-res particles is %f",'x'+icoord, sigv);
|
LOGINFO("sigma of %c-velocity of high-res particles is %f",'x'+icoord, sigv);
|
||||||
|
|
||||||
|
double meanv = compute_finest_mean( data_forIO );
|
||||||
|
LOGINFO("mean of %c-velocity of high-res particles is %f",'x'+icoord, meanv);
|
||||||
|
LOGUSER("mean of %c-velocity of high-res particles is %f",'x'+icoord, meanv);
|
||||||
|
|
||||||
|
double maxv = compute_finest_max( data_forIO );
|
||||||
|
LOGINFO("max of abs of %c-velocity of high-res particles is %f",'x'+icoord, maxv);
|
||||||
|
|
||||||
|
|
||||||
coarsen_density( rh_Poisson, data_forIO, false );
|
coarsen_density( rh_Poisson, data_forIO, false );
|
||||||
LOGUSER("Writing CDM velocities");
|
LOGUSER("Writing CDM velocities");
|
||||||
the_output_plugin->write_dm_velocity(icoord, data_forIO);
|
the_output_plugin->write_dm_velocity(icoord, data_forIO);
|
||||||
|
@ -811,6 +819,13 @@ int main (int argc, const char * argv[])
|
||||||
double sigv = compute_finest_sigma( data_forIO );
|
double sigv = compute_finest_sigma( data_forIO );
|
||||||
LOGINFO("sigma of %c-velocity of high-res DM is %f",'x'+icoord, sigv);
|
LOGINFO("sigma of %c-velocity of high-res DM is %f",'x'+icoord, sigv);
|
||||||
|
|
||||||
|
double meanv = compute_finest_mean( data_forIO );
|
||||||
|
LOGINFO("mean of %c-velocity of high-res particles is %f",'x'+icoord, meanv);
|
||||||
|
LOGUSER("mean of %c-velocity of high-res particles is %f",'x'+icoord, meanv);
|
||||||
|
|
||||||
|
double maxv = compute_finest_max( data_forIO );
|
||||||
|
LOGINFO("max of abs of %c-velocity of high-res particles is %f",'x'+icoord, maxv);
|
||||||
|
|
||||||
coarsen_density( rh_Poisson, data_forIO, false );
|
coarsen_density( rh_Poisson, data_forIO, false );
|
||||||
LOGUSER("Writing CDM velocities");
|
LOGUSER("Writing CDM velocities");
|
||||||
the_output_plugin->write_dm_velocity(icoord, data_forIO);
|
the_output_plugin->write_dm_velocity(icoord, data_forIO);
|
||||||
|
@ -859,6 +874,14 @@ int main (int argc, const char * argv[])
|
||||||
double sigv = compute_finest_sigma( data_forIO );
|
double sigv = compute_finest_sigma( data_forIO );
|
||||||
LOGINFO("sigma of %c-velocity of high-res baryons is %f",'x'+icoord, sigv);
|
LOGINFO("sigma of %c-velocity of high-res baryons is %f",'x'+icoord, sigv);
|
||||||
|
|
||||||
|
double meanv = compute_finest_mean( data_forIO );
|
||||||
|
LOGINFO("mean of %c-velocity of high-res baryons is %f",'x'+icoord, meanv);
|
||||||
|
LOGUSER("mean of %c-velocity of high-res baryons is %f",'x'+icoord, meanv);
|
||||||
|
|
||||||
|
double maxv = compute_finest_max( data_forIO );
|
||||||
|
LOGINFO("max of abs of %c-velocity of high-res baryons is %f",'x'+icoord, maxv);
|
||||||
|
|
||||||
|
|
||||||
coarsen_density( rh_Poisson, data_forIO, false );
|
coarsen_density( rh_Poisson, data_forIO, false );
|
||||||
LOGUSER("Writing baryon velocities");
|
LOGUSER("Writing baryon velocities");
|
||||||
the_output_plugin->write_gas_velocity(icoord, data_forIO);
|
the_output_plugin->write_gas_velocity(icoord, data_forIO);
|
||||||
|
@ -965,7 +988,16 @@ int main (int argc, const char * argv[])
|
||||||
data_forIO *= cosmo.vfact;
|
data_forIO *= cosmo.vfact;
|
||||||
|
|
||||||
double sigv = compute_finest_sigma( data_forIO );
|
double sigv = compute_finest_sigma( data_forIO );
|
||||||
|
|
||||||
|
double meanv = compute_finest_mean( data_forIO );
|
||||||
|
LOGINFO("mean of %c-velocity of high-res particles is %f",'x'+icoord, meanv);
|
||||||
|
LOGUSER("mean of %c-velocity of high-res particles is %f",'x'+icoord, meanv);
|
||||||
|
|
||||||
|
double maxv = compute_finest_max( data_forIO );
|
||||||
|
LOGINFO("max of abs of %c-velocity of high-res particles is %f",'x'+icoord, maxv);
|
||||||
|
|
||||||
std::cerr << " - velocity component " << icoord << " : sigma = " << sigv << std::endl;
|
std::cerr << " - velocity component " << icoord << " : sigma = " << sigv << std::endl;
|
||||||
|
std::cerr << " - velocity component " << icoord << " : mean = " << meanv << std::endl;
|
||||||
|
|
||||||
coarsen_density( rh_Poisson, data_forIO, false );
|
coarsen_density( rh_Poisson, data_forIO, false );
|
||||||
LOGUSER("Writing CDM velocities");
|
LOGUSER("Writing CDM velocities");
|
||||||
|
@ -1049,7 +1081,17 @@ int main (int argc, const char * argv[])
|
||||||
data_forIO *= cosmo.vfact;
|
data_forIO *= cosmo.vfact;
|
||||||
|
|
||||||
double sigv = compute_finest_sigma( data_forIO );
|
double sigv = compute_finest_sigma( data_forIO );
|
||||||
|
|
||||||
|
double meanv = compute_finest_mean( data_forIO );
|
||||||
|
LOGINFO("mean of %c-velocity of high-res baryons is %f",'x'+icoord, meanv);
|
||||||
|
LOGUSER("mean of %c-velocity of high-res baryons is %f",'x'+icoord, meanv);
|
||||||
|
|
||||||
|
double maxv = compute_finest_max( data_forIO );
|
||||||
|
LOGINFO("max of abs of %c-velocity of high-res baryons is %f",'x'+icoord, maxv);
|
||||||
|
|
||||||
std::cerr << " - velocity component " << icoord << " : sigma = " << sigv << std::endl;
|
std::cerr << " - velocity component " << icoord << " : sigma = " << sigv << std::endl;
|
||||||
|
std::cerr << " - velocity component " << icoord << " : mean = " << meanv << std::endl;
|
||||||
|
|
||||||
|
|
||||||
coarsen_density( rh_Poisson, data_forIO, false );
|
coarsen_density( rh_Poisson, data_forIO, false );
|
||||||
LOGUSER("Writing baryon velocities");
|
LOGUSER("Writing baryon velocities");
|
||||||
|
|
Loading…
Reference in a new issue