nsteps=0 for run forever
This commit is contained in:
parent
2be9a3f6a5
commit
41945b8e35
@ -49,7 +49,7 @@ int uk(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// iterate
|
// iterate
|
||||||
for(t=starting_time;t<starting_time+nsteps;t++){
|
for(t=starting_time;nsteps==0 || t<starting_time+nsteps;t++){
|
||||||
ns_step(u, K1, K2, N1, N2, nu, delta, L, g, fft1, fft2, ifft, tmp1, tmp2, tmp3, irreversible);
|
ns_step(u, K1, K2, N1, N2, nu, delta, L, g, fft1, fft2, ifft, tmp1, tmp2, tmp3, irreversible);
|
||||||
|
|
||||||
if(t%print_freq==0){
|
if(t%print_freq==0){
|
||||||
@ -125,7 +125,7 @@ int eea(
|
|||||||
uint64_t first_box = print_freq - (starting_time % print_freq);
|
uint64_t first_box = print_freq - (starting_time % print_freq);
|
||||||
|
|
||||||
// iterate
|
// iterate
|
||||||
for(t=starting_time;t<starting_time+nsteps;t++){
|
for(t=starting_time;nsteps==0 || t<starting_time+nsteps;t++){
|
||||||
ns_step(u, K1, K2, N1, N2, nu, delta, L, g, fft1, fft2, ifft, tmp1, tmp2, tmp3, irreversible);
|
ns_step(u, K1, K2, N1, N2, nu, delta, L, g, fft1, fft2, ifft, tmp1, tmp2, tmp3, irreversible);
|
||||||
|
|
||||||
// convolution term
|
// convolution term
|
||||||
@ -230,7 +230,7 @@ int quiet(
|
|||||||
copy_u(u, u0, K1, K2);
|
copy_u(u, u0, K1, K2);
|
||||||
|
|
||||||
// iterate
|
// iterate
|
||||||
for(t=0;t<nsteps;t++){
|
for(t=0;nsteps==0 || t<nsteps;t++){
|
||||||
ns_step(u, K1, K2, N1, N2, nu, delta, L, g, fft1, fft2, ifft, tmp1, tmp2, tmp3, irreversible);
|
ns_step(u, K1, K2, N1, N2, nu, delta, L, g, fft1, fft2, ifft, tmp1, tmp2, tmp3, irreversible);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user