Return data directly if flags is zero
This commit is contained in:
parent
0afe7b7eab
commit
0c0b04548b
@ -318,6 +318,9 @@ CosmoTool::SimuData *CosmoTool::loadRamsesSimu(const char *basename, int outputI
|
|||||||
data->Omega_M = info.omega_m;
|
data->Omega_M = info.omega_m;
|
||||||
data->Omega_Lambda = info.omega_lambda;
|
data->Omega_Lambda = info.omega_lambda;
|
||||||
|
|
||||||
|
if (flags == 0)
|
||||||
|
return data;
|
||||||
|
|
||||||
if (cpuid < 0)
|
if (cpuid < 0)
|
||||||
cpuid = 1;
|
cpuid = 1;
|
||||||
else cpuid++;
|
else cpuid++;
|
||||||
|
Loading…
Reference in New Issue
Block a user