mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
cleaned up some compiler warnings
This commit is contained in:
parent
690c3e8399
commit
5170034218
1 changed files with 6 additions and 4 deletions
|
@ -282,14 +282,15 @@ public:
|
|||
{
|
||||
panphasia_descriptor d(descriptor_string_);
|
||||
|
||||
int lextra = (log10((double)ngrid_ / (double)d.i_base) + 0.001) / log10(2.0);
|
||||
const int lextra = (log10((double)ngrid_ / (double)d.i_base) + 0.001) / log10(2.0);
|
||||
int level_p = d.wn_level_base + lextra;
|
||||
int ratio = 1 << lextra;
|
||||
const int ratio = 1 << lextra;
|
||||
|
||||
lstate[mythread].layer_min = 0;
|
||||
lstate[mythread].layer_max = level_p;
|
||||
lstate[mythread].indep_field = 1;
|
||||
|
||||
_unused(ratio);
|
||||
assert(ngrid_ == ratio * d.i_base);
|
||||
|
||||
long long ix_rel[3];
|
||||
|
@ -419,14 +420,15 @@ public:
|
|||
{
|
||||
panphasia_descriptor d(descriptor_string_);
|
||||
|
||||
int lextra = (log10((double)ngrid_ / (double)d.i_base) + 0.001) / log10(2.0);
|
||||
const int lextra = (log10((double)ngrid_ / (double)d.i_base) + 0.001) / log10(2.0);
|
||||
int level_p = d.wn_level_base + lextra;
|
||||
int ratio = 1 << lextra;
|
||||
const int ratio = 1 << lextra;
|
||||
|
||||
lstate[mythread].layer_min = 0;
|
||||
lstate[mythread].layer_max = level_p;
|
||||
lstate[mythread].indep_field = 1;
|
||||
|
||||
_unused(ratio);
|
||||
assert(ngrid_ == ratio * d.i_base);
|
||||
|
||||
long long ix_rel[3];
|
||||
|
|
Loading…
Reference in a new issue