212 |
_END_MASTER( mythid ) |
_END_MASTER( mythid ) |
213 |
endif |
endif |
214 |
|
|
215 |
|
c >>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<< |
216 |
|
c >>>>>>>>>>>>>>>>>>> TANGENT RUN <<<<<<<<<<<<<<<<<<< |
217 |
|
c >>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<< |
218 |
|
|
219 |
|
if (theSimulationMode .eq. TANGENT_SIMULATION) then |
220 |
|
|
221 |
|
_BEGIN_MASTER( mythid ) |
222 |
|
|
223 |
|
c Read the active variable from file. |
224 |
|
|
225 |
|
call mdsreadfieldxz( |
226 |
|
& active_var_file, |
227 |
|
& prec, |
228 |
|
& 'RL', |
229 |
|
& mynr, |
230 |
|
& active_var, |
231 |
|
& irec, |
232 |
|
& mythid ) |
233 |
|
|
234 |
|
_END_MASTER( mythid ) |
235 |
|
|
236 |
|
endif |
237 |
|
|
238 |
c Reset default io precision. |
c Reset default io precision. |
239 |
readBinaryPrec = oldPrec |
readBinaryPrec = oldPrec |
240 |
|
|
372 |
|
|
373 |
endif |
endif |
374 |
|
|
375 |
|
c >>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<< |
376 |
|
c >>>>>>>>>>>>>>>>>>> TANGENT RUN <<<<<<<<<<<<<<<<<<< |
377 |
|
c >>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<< |
378 |
|
|
379 |
|
if (theSimulationMode .eq. TANGENT_SIMULATION) then |
380 |
|
|
381 |
|
_BEGIN_MASTER( mythid ) |
382 |
|
|
383 |
|
call mdswritefieldxz( |
384 |
|
& active_var_file, |
385 |
|
& prec, |
386 |
|
& globalfile, |
387 |
|
& 'RL', |
388 |
|
& mynr, |
389 |
|
& active_var, |
390 |
|
& irec, |
391 |
|
& myOptimIter, |
392 |
|
& mythid ) |
393 |
|
|
394 |
|
_END_MASTER( mythid ) |
395 |
|
|
396 |
|
endif |
397 |
|
|
398 |
c Reset default io precision. |
c Reset default io precision. |
399 |
readBinaryPrec = oldPrec |
readBinaryPrec = oldPrec |
400 |
|
|
596 |
_END_MASTER( mythid ) |
_END_MASTER( mythid ) |
597 |
endif |
endif |
598 |
|
|
599 |
|
c >>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<< |
600 |
|
c >>>>>>>>>>>>>>>>>>> TANGENT RUN <<<<<<<<<<<<<<<<<<< |
601 |
|
c >>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<< |
602 |
|
|
603 |
|
if (theSimulationMode .eq. TANGENT_SIMULATION) then |
604 |
|
|
605 |
|
_BEGIN_MASTER( mythid ) |
606 |
|
|
607 |
|
c Read the active variable from file. |
608 |
|
|
609 |
|
call mdsreadfieldyz( |
610 |
|
& active_var_file, |
611 |
|
& prec, |
612 |
|
& 'RL', |
613 |
|
& mynr, |
614 |
|
& active_var, |
615 |
|
& irec, |
616 |
|
& mythid ) |
617 |
|
|
618 |
|
_END_MASTER( mythid ) |
619 |
|
|
620 |
|
endif |
621 |
|
|
622 |
c Reset default io precision. |
c Reset default io precision. |
623 |
readBinaryPrec = oldPrec |
readBinaryPrec = oldPrec |
624 |
|
|
754 |
|
|
755 |
_END_MASTER( mythid ) |
_END_MASTER( mythid ) |
756 |
|
|
757 |
|
endif |
758 |
|
|
759 |
|
c >>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<< |
760 |
|
c >>>>>>>>>>>>>>>>>>> TANGENTY RUN <<<<<<<<<<<<<<<<<<< |
761 |
|
c >>>>>>>>>>>>>>>>>>> <<<<<<<<<<<<<<<<<<< |
762 |
|
|
763 |
|
if (theSimulationMode .eq. TANGENT_SIMULATION) then |
764 |
|
|
765 |
|
_BEGIN_MASTER( mythid ) |
766 |
|
|
767 |
|
call mdswritefieldyz( |
768 |
|
& active_var_file, |
769 |
|
& prec, |
770 |
|
& globalfile, |
771 |
|
& 'RL', |
772 |
|
& mynr, |
773 |
|
& active_var, |
774 |
|
& irec, |
775 |
|
& myOptimIter, |
776 |
|
& mythid ) |
777 |
|
|
778 |
|
_END_MASTER( mythid ) |
779 |
|
|
780 |
endif |
endif |
781 |
|
|
782 |
c Reset default io precision. |
c Reset default io precision. |