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

fix typo in ternary operator

This commit is contained in:
Lukas Winkler 2023-01-04 14:50:29 +01:00
parent 303ec60530
commit a18a1b2369
Signed by: lukas
GPG key ID: 54DE4D798D244853

View file

@ -534,7 +534,7 @@ int run( config_file& the_config )
if( the_output_plugin->write_species_as( this_species ) == output_type::particles ) if( the_output_plugin->write_species_as( this_species ) == output_type::particles )
{ {
// somewhat arbitrarily, start baryon particle IDs from 2**31 if we have 32bit and from 2**56 if we have 64 bits // somewhat arbitrarily, start baryon particle IDs from 2**31 if we have 32bit and from 2**56 if we have 64 bits
size_t IDoffset = (this_species == cosmo_species::baryon)? ((the_output_plugin->has_64bit_ids())? 1 : 1): 0 ; size_t IDoffset = (this_species == cosmo_species::baryon) ? the_output_plugin->has_64bit_ids() : 0;
// allocate particle structure and generate particle IDs // allocate particle structure and generate particle IDs
bool secondary_lattice = (this_species == cosmo_species::baryon && bool secondary_lattice = (this_species == cosmo_species::baryon &&