mirror of
https://bitbucket.org/cosmicvoids/vide_public.git
synced 2025-07-04 15:21:11 +00:00
Initialize variables in SimulationLoader
This commit is contained in:
parent
91926434a4
commit
5573b82c44
2 changed files with 6 additions and 2 deletions
|
@ -573,7 +573,7 @@ int main(int argc, char **argv)
|
|||
simu = doLoadSimulation(args_info.flash_arg, args_info.axis_arg, false, loadFlashMulti);
|
||||
}
|
||||
*/
|
||||
loader = gadgetLoader(args_info.gadget_arg, args_info.gadgetUnit_arg, NEED_POSITION|NEED_VELOCITY|NEED_GADGET_ID);
|
||||
loader = gadgetLoader(args_info.gadget_arg, 1/args_info.gadgetUnit_arg, NEED_POSITION|NEED_VELOCITY|NEED_GADGET_ID);
|
||||
if (loader == 0)
|
||||
{
|
||||
cerr << "Error while loading " << endl;
|
||||
|
|
|
@ -10,7 +10,11 @@ protected:
|
|||
bool do_redshift;
|
||||
int redshift_axis;
|
||||
|
||||
SimulationLoader() {}
|
||||
SimulationLoader()
|
||||
{
|
||||
do_redshift = false;
|
||||
redshift_axis = 2;
|
||||
}
|
||||
|
||||
void applyTransformations(CosmoTool::SimuData *s);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue