29 |
|
|
30 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
31 |
|
|
32 |
#ifdef AUTODIFF_2_LEVEL_CHECKPOINT |
#if (defined (AUTODIFF_2_LEVEL_CHECKPOINT)) |
33 |
if (nchklev_1*nchklev_2 .lt. nTimeSteps) then |
if (nchklev_1*nchklev_2 .lt. nTimeSteps) then |
34 |
print*, ' the_main_loop: TAMC checkpointing parameters' |
print*, ' the_main_loop: TAMC checkpointing parameters' |
35 |
print*, ' nchklev_1*nchklev_2 = ', |
print*, ' nchklev_1*nchklev_2 = ', |
36 |
& nchklev_1*nchklev_2 |
& nchklev_1*nchklev_2 |
37 |
print*, ' are not consistent with nTimeSteps = ', |
print*, ' are not consistent with nTimeSteps = ', |
38 |
& nTimeSteps |
& nTimeSteps |
39 |
stop ' ... stopped in autodiff_check' |
stop ' ... stopped in autodiff_check' |
40 |
endif |
endif |
41 |
|
#elif (defined (AUTODIFF_4_LEVEL_CHECKPOINT)) |
42 |
|
if (nchklev_1*nchklev_2*nchklev_3*nchklev_4 .lt. nTimeSteps) then |
43 |
|
print*, ' the_main_loop: TAMC checkpointing parameters' |
44 |
|
print*, ' nchklev_1*nchklev_2*nchklev_3*nchklev_4 = ', |
45 |
|
& nchklev_1*nchklev_2*nchklev_3*nchklev_4 |
46 |
|
print*, ' are not consistent with nTimeSteps = ', |
47 |
|
& nTimeSteps |
48 |
|
stop ' ... stopped in autodiff_check' |
49 |
|
endif |
50 |
#else |
#else |
51 |
c-- Check the choice of the checkpointing parameters in relation |
c-- Check the choice of the checkpointing parameters in relation |
52 |
c-- to nTimeSteps: (nchklev_1*nchklev_2*nchklev_3 .ge. nTimeSteps) |
c-- to nTimeSteps: (nchklev_1*nchklev_2*nchklev_3 .ge. nTimeSteps) |
53 |
if (nchklev_1*nchklev_2*nchklev_3 .lt. nTimeSteps) then |
if (nchklev_1*nchklev_2*nchklev_3 .lt. nTimeSteps) then |
54 |
print*, ' the_main_loop: TAMC checkpointing parameters' |
print*, ' the_main_loop: TAMC checkpointing parameters' |
55 |
print*, ' nchklev_1*nchklev_2*nchklev_3 = ', |
print*, ' nchklev_1*nchklev_2*nchklev_3 = ', |
56 |
& nchklev_1*nchklev_2*nchklev_3 |
& nchklev_1*nchklev_2*nchklev_3 |
57 |
print*, ' are not consistent with nTimeSteps = ', |
print*, ' are not consistent with nTimeSteps = ', |
58 |
& nTimeSteps |
& nTimeSteps |