159 |
ierr_grdchk = 0 |
ierr_grdchk = 0 |
160 |
adxxmemo = 0. |
adxxmemo = 0. |
161 |
ftlxxmemo = 0. |
ftlxxmemo = 0. |
162 |
#ifdef ALLOW_ADMTLM |
#if (defined (ALLOW_ADMTLM)) |
163 |
fcref = objf_state_final(idep,jdep,1,1,1) |
fcref = objf_state_final(idep,jdep,1,1,1) |
164 |
|
#elif (defined (ALLOW_AUTODIFF_OPENAD)) |
165 |
|
fcref = fc%v |
166 |
#else |
#else |
167 |
fcref = fc |
fcref = fc |
168 |
#endif |
#endif |
325 |
c-- forward run with perturbed control vector |
c-- forward run with perturbed control vector |
326 |
mytime = starttime |
mytime = starttime |
327 |
myiter = niter0 |
myiter = niter0 |
328 |
|
#ifdef ALLOW_AUTODIFF_OPENAD |
329 |
|
call OpenAD_the_main_loop( mytime, myiter, mythid ) |
330 |
|
#else |
331 |
call the_main_loop( mytime, myiter, mythid ) |
call the_main_loop( mytime, myiter, mythid ) |
332 |
#ifdef ALLOW_ADMTLM |
#endif |
333 |
|
|
334 |
|
#if (defined (ALLOW_ADMTLM)) |
335 |
fcpertplus = objf_state_final(idep,jdep,1,1,1) |
fcpertplus = objf_state_final(idep,jdep,1,1,1) |
336 |
|
#elif (defined (ALLOW_AUTODIFF_OPENAD)) |
337 |
|
fcpertplus = fc%v |
338 |
#else |
#else |
339 |
fcpertplus = fc |
fcpertplus = fc |
340 |
#endif |
#endif |
364 |
c-- forward run with perturbed control vector |
c-- forward run with perturbed control vector |
365 |
mytime = starttime |
mytime = starttime |
366 |
myiter = niter0 |
myiter = niter0 |
367 |
|
#ifdef ALLOW_AUTODIFF_OPENAD |
368 |
|
call OpenAD_the_main_loop( mytime, myiter, mythid ) |
369 |
|
#else |
370 |
call the_main_loop( mytime, myiter, mythid ) |
call the_main_loop( mytime, myiter, mythid ) |
371 |
#ifdef ALLOW_ADMTLM |
#endif |
372 |
|
|
373 |
|
#if (defined (ALLOW_ADMTLM)) |
374 |
fcpertminus = objf_state_final(idep,jdep,1,1,1) |
fcpertminus = objf_state_final(idep,jdep,1,1,1) |
375 |
|
#elif (defined (ALLOW_AUTODIFF_OPENAD)) |
376 |
|
fcpertminus = fc%v |
377 |
#else |
#else |
378 |
fcpertminus = fc |
fcpertminus = fc |
379 |
#endif |
#endif |