|
C $Header$ |
|
|
C $Name$ |
|
1 |
|
|
2 |
#include "AUTODIFF_OPTIONS.h" |
#include "AUTODIFF_OPTIONS.h" |
3 |
|
|
19 |
c o adactive_write_xz - Adjoint of active_write_xz |
c o adactive_write_xz - Adjoint of active_write_xz |
20 |
c o adactive_write_yz - Adjoint of active_write_yz |
c o adactive_write_yz - Adjoint of active_write_yz |
21 |
c |
c |
|
c o adactive_read_tile_xy - Adjoint of active_read_tile_xy |
|
|
c o adactive_read_tile_xyz - Adjoint of active_read_tile_xyz |
|
|
c o adactive_write_tile_xy - Adjoint of active_write_tile_xy |
|
|
c o adactive_write_tile_xyz - Adjoint of active_write_tile_xyz |
|
|
c |
|
22 |
c changed: Christian Eckert eckert@mit.edu 24-Apr-2000 |
c changed: Christian Eckert eckert@mit.edu 24-Apr-2000 |
23 |
c - Added routines that do active writes on tiles |
c - Added routines that do active writes on tiles |
24 |
c instead of a whole thread. |
c instead of a whole thread. |
25 |
c changed: Patrick Heimbach heimbach@mit.edu 27-May-2000 |
c changed: Patrick Heimbach heimbach@mit.edu 27-May-2000 |
26 |
c - changed suboutine argument list: |
c - changed suboutine argument list: |
27 |
c dropped mycurrentiter, mycurrenttime |
c dropped mycurrentiter, mycurrenttime |
28 |
c changed: heimbach@mit.edu 25-Mar-2002 |
c changed: heimbach@mit.edu 25-Mar-2002 |
29 |
c - added active file handling of xz-/yz-arrays |
c - added active file handling of xz-/yz-arrays |
33 |
CBOP |
CBOP |
34 |
C !ROUTINE: adactive_read_xy |
C !ROUTINE: adactive_read_xy |
35 |
C !INTERFACE: |
C !INTERFACE: |
36 |
|
#ifdef AUTODIFF_TAMC_COMPATIBILITY |
37 |
subroutine adactive_read_xy( |
subroutine adactive_read_xy( |
38 |
I active_var_file, |
I active_var_file, |
39 |
I irec, |
I irec, |
43 |
I mythid, |
I mythid, |
44 |
I adactive_var |
I adactive_var |
45 |
& ) |
& ) |
46 |
|
#else |
47 |
|
subroutine adactive_read_xy( |
48 |
|
I active_var_file, |
49 |
|
I adactive_var, |
50 |
|
I irec, |
51 |
|
I doglobalread, |
52 |
|
I lAdInit, |
53 |
|
I myiter, |
54 |
|
I mythid |
55 |
|
& ) |
56 |
|
#endif |
57 |
|
|
58 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
59 |
c ================================================================== |
c ================================================================== |
62 |
c o Adjoint of active_read_xy. |
c o Adjoint of active_read_xy. |
63 |
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
64 |
c ================================================================== |
c ================================================================== |
|
c SUBROUTINE adactive_read_xy |
|
|
c ================================================================== |
|
65 |
C \ev |
C \ev |
66 |
|
|
67 |
C !USES: |
C !USES: |
121 |
CBOP |
CBOP |
122 |
C !ROUTINE: adactive_read_xyz |
C !ROUTINE: adactive_read_xyz |
123 |
C !INTERFACE: |
C !INTERFACE: |
124 |
|
#ifdef AUTODIFF_TAMC_COMPATIBILITY |
125 |
subroutine adactive_read_xyz( |
subroutine adactive_read_xyz( |
126 |
I active_var_file, |
I active_var_file, |
127 |
I irec, |
I irec, |
131 |
I mythid, |
I mythid, |
132 |
I adactive_var |
I adactive_var |
133 |
& ) |
& ) |
134 |
|
#else |
135 |
|
subroutine adactive_read_xyz( |
136 |
|
I active_var_file, |
137 |
|
I adactive_var, |
138 |
|
I irec, |
139 |
|
I doglobalread, |
140 |
|
I lAdInit, |
141 |
|
I myiter, |
142 |
|
I mythid |
143 |
|
& ) |
144 |
|
#endif |
145 |
|
|
146 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
147 |
c ================================================================== |
c ================================================================== |
150 |
c o Adjoint of active_read_xyz. |
c o Adjoint of active_read_xyz. |
151 |
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
152 |
c ================================================================== |
c ================================================================== |
|
c SUBROUTINE adactive_read_xyz |
|
|
c ================================================================== |
|
153 |
C \ev |
C \ev |
154 |
|
|
155 |
C !USES: |
C !USES: |
208 |
CBOP |
CBOP |
209 |
C !ROUTINE: adactive_read_xz |
C !ROUTINE: adactive_read_xz |
210 |
C !INTERFACE: |
C !INTERFACE: |
211 |
|
#ifdef AUTODIFF_TAMC_COMPATIBILITY |
212 |
subroutine adactive_read_xz( |
subroutine adactive_read_xz( |
213 |
I active_var_file, |
I active_var_file, |
214 |
I irec, |
I irec, |
218 |
I mythid, |
I mythid, |
219 |
I adactive_var |
I adactive_var |
220 |
& ) |
& ) |
221 |
|
#else |
222 |
|
subroutine adactive_read_xz( |
223 |
|
I active_var_file, |
224 |
|
I adactive_var, |
225 |
|
I irec, |
226 |
|
I doglobalread, |
227 |
|
I lAdInit, |
228 |
|
I myiter, |
229 |
|
I mythid |
230 |
|
& ) |
231 |
|
#endif |
232 |
|
|
233 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
234 |
c ================================================================== |
c ================================================================== |
237 |
c o Adjoint of active_read_xz. |
c o Adjoint of active_read_xz. |
238 |
c started: heimbach@mit.edu 05-Mar-2001 |
c started: heimbach@mit.edu 05-Mar-2001 |
239 |
c ================================================================== |
c ================================================================== |
|
c SUBROUTINE adactive_read_xz |
|
|
c ================================================================== |
|
240 |
C \ev |
C \ev |
241 |
|
|
242 |
C !USES: |
C !USES: |
295 |
CBOP |
CBOP |
296 |
C !ROUTINE: adactive_read_yz |
C !ROUTINE: adactive_read_yz |
297 |
C !INTERFACE: |
C !INTERFACE: |
298 |
|
#ifdef AUTODIFF_TAMC_COMPATIBILITY |
299 |
subroutine adactive_read_yz( |
subroutine adactive_read_yz( |
300 |
I active_var_file, |
I active_var_file, |
301 |
I irec, |
I irec, |
305 |
I mythid, |
I mythid, |
306 |
I adactive_var |
I adactive_var |
307 |
& ) |
& ) |
308 |
|
#else |
309 |
|
subroutine adactive_read_yz( |
310 |
|
I active_var_file, |
311 |
|
I adactive_var, |
312 |
|
I irec, |
313 |
|
I doglobalread, |
314 |
|
I lAdInit, |
315 |
|
I myiter, |
316 |
|
I mythid |
317 |
|
& ) |
318 |
|
#endif |
319 |
|
|
320 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
321 |
c ================================================================== |
c ================================================================== |
324 |
c o Adjoint of active_read_yz. |
c o Adjoint of active_read_yz. |
325 |
c started: heimbach@mit.edu 05-Mar-2001 |
c started: heimbach@mit.edu 05-Mar-2001 |
326 |
c ================================================================== |
c ================================================================== |
|
c SUBROUTINE adactive_read_yz |
|
|
c ================================================================== |
|
327 |
C \ev |
C \ev |
328 |
|
|
329 |
C !USES: |
C !USES: |
382 |
CBOP |
CBOP |
383 |
C !ROUTINE: adactive_read_xy |
C !ROUTINE: adactive_read_xy |
384 |
C !INTERFACE: |
C !INTERFACE: |
385 |
|
#ifdef AUTODIFF_TAMC_COMPATIBILITY |
386 |
subroutine adactive_write_xy( |
subroutine adactive_write_xy( |
387 |
I active_var_file, |
I active_var_file, |
388 |
I irec, |
I irec, |
391 |
U adactive_var, |
U adactive_var, |
392 |
I dummy |
I dummy |
393 |
& ) |
& ) |
394 |
|
#else |
395 |
|
subroutine adactive_write_xy( |
396 |
|
I active_var_file, |
397 |
|
U adactive_var, |
398 |
|
I irec, |
399 |
|
I myiter, |
400 |
|
I mythid, |
401 |
|
I dummy |
402 |
|
& ) |
403 |
|
#endif |
404 |
|
|
405 |
|
|
406 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
410 |
c o Adjoint of active_write_xy. |
c o Adjoint of active_write_xy. |
411 |
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
412 |
c ================================================================== |
c ================================================================== |
|
c SUBROUTINE adactive_write_xy |
|
|
c ================================================================== |
|
413 |
C \ev |
C \ev |
414 |
|
|
415 |
C !USES: |
C !USES: |
466 |
CBOP |
CBOP |
467 |
C !ROUTINE: adactive_read_xyz |
C !ROUTINE: adactive_read_xyz |
468 |
C !INTERFACE: |
C !INTERFACE: |
469 |
|
#ifdef AUTODIFF_TAMC_COMPATIBILITY |
470 |
subroutine adactive_write_xyz( |
subroutine adactive_write_xyz( |
471 |
I active_var_file, |
I active_var_file, |
472 |
I irec, |
I irec, |
475 |
U adactive_var, |
U adactive_var, |
476 |
I dummy |
I dummy |
477 |
& ) |
& ) |
478 |
|
#else |
479 |
|
subroutine adactive_write_xyz( |
480 |
|
I active_var_file, |
481 |
|
U adactive_var, |
482 |
|
I irec, |
483 |
|
I myiter, |
484 |
|
I mythid, |
485 |
|
I dummy |
486 |
|
& ) |
487 |
|
#endif |
488 |
|
|
489 |
|
|
490 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
494 |
c o Adjoint of active_write_xyz. |
c o Adjoint of active_write_xyz. |
495 |
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
496 |
c ================================================================== |
c ================================================================== |
|
c SUBROUTINE adactive_write_xyz |
|
|
c ================================================================== |
|
497 |
C \ev |
C \ev |
498 |
|
|
499 |
C !USES: |
C !USES: |
550 |
CBOP |
CBOP |
551 |
C !ROUTINE: adactive_read_xz |
C !ROUTINE: adactive_read_xz |
552 |
C !INTERFACE: |
C !INTERFACE: |
553 |
|
#ifdef AUTODIFF_TAMC_COMPATIBILITY |
554 |
subroutine adactive_write_xz( |
subroutine adactive_write_xz( |
555 |
I active_var_file, |
I active_var_file, |
556 |
I irec, |
I irec, |
559 |
U adactive_var, |
U adactive_var, |
560 |
I dummy |
I dummy |
561 |
& ) |
& ) |
562 |
|
#else |
563 |
|
subroutine adactive_write_xz( |
564 |
|
I active_var_file, |
565 |
|
U adactive_var, |
566 |
|
I irec, |
567 |
|
I myiter, |
568 |
|
I mythid, |
569 |
|
I dummy |
570 |
|
& ) |
571 |
|
#endif |
572 |
|
|
573 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
574 |
c ================================================================== |
c ================================================================== |
577 |
c o Adjoint of active_write_xz. |
c o Adjoint of active_write_xz. |
578 |
c started: heimbach@mit.edu 05-Mar-2001 |
c started: heimbach@mit.edu 05-Mar-2001 |
579 |
c ================================================================== |
c ================================================================== |
|
c SUBROUTINE adactive_write_xz |
|
|
c ================================================================== |
|
580 |
C \ev |
C \ev |
581 |
|
|
582 |
C !USES: |
C !USES: |
633 |
CBOP |
CBOP |
634 |
C !ROUTINE: adactive_read_yz |
C !ROUTINE: adactive_read_yz |
635 |
C !INTERFACE: |
C !INTERFACE: |
636 |
|
#ifdef AUTODIFF_TAMC_COMPATIBILITY |
637 |
subroutine adactive_write_yz( |
subroutine adactive_write_yz( |
638 |
I active_var_file, |
I active_var_file, |
639 |
I irec, |
I irec, |
642 |
U adactive_var, |
U adactive_var, |
643 |
I dummy |
I dummy |
644 |
& ) |
& ) |
645 |
|
#else |
646 |
|
subroutine adactive_write_yz( |
647 |
|
I active_var_file, |
648 |
|
U adactive_var, |
649 |
|
I irec, |
650 |
|
I myiter, |
651 |
|
I mythid, |
652 |
|
I dummy |
653 |
|
& ) |
654 |
|
#endif |
655 |
|
|
656 |
|
|
657 |
C !DESCRIPTION: \bv |
C !DESCRIPTION: \bv |
661 |
c o Adjoint of active_write_yz. |
c o Adjoint of active_write_yz. |
662 |
c started: heimbach@mit.edu 05-Mar-2001 |
c started: heimbach@mit.edu 05-Mar-2001 |
663 |
c ================================================================== |
c ================================================================== |
|
c SUBROUTINE adactive_write_yz |
|
|
c ================================================================== |
|
664 |
C \ev |
C \ev |
665 |
|
|
666 |
C !USES: |
C !USES: |
715 |
end |
end |
716 |
|
|
717 |
|
|
|
|
|
|
subroutine adactive_read_tile_xy( |
|
|
I active_var_file, |
|
|
I irec, |
|
|
I doglobalread, |
|
|
I bi, |
|
|
I bj, |
|
|
I lAdInit, |
|
|
I myOptimIter, |
|
|
I mythid, |
|
|
U adactive_var |
|
|
& ) |
|
|
|
|
|
c ================================================================== |
|
|
c SUBROUTINE active_read_tile_xy |
|
|
c ================================================================== |
|
|
c |
|
|
c o Adjoint of active_read_tile_xy. |
|
|
c |
|
|
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
|
|
c |
|
|
c changed: Christian Eckert eckert@mit.edu 11-Feb-2000 |
|
|
c |
|
|
c - Restructured the code in order to create a package |
|
|
c for the MITgcmUV.c |
|
|
c |
|
|
c changed: Christian Eckert eckert@mit.edu 24-Apr-2000 |
|
|
c |
|
|
c - Added routines that do active writes on tiles |
|
|
c instead of a whole thread. |
|
|
c |
|
|
c changed: Patrick Heimbach heimbach@mit.edu 27-May-2000 |
|
|
c |
|
|
c - changed suboutine argument list: |
|
|
c dropped mycurrentiter, mycurrenttime |
|
|
c |
|
|
c ================================================================== |
|
|
c SUBROUTINE active_read_tile_xy |
|
|
c ================================================================== |
|
|
|
|
|
implicit none |
|
|
|
|
|
c == global variables == |
|
|
|
|
|
#include "EEPARAMS.h" |
|
|
#include "SIZE.h" |
|
|
|
|
|
c == routine arguments == |
|
|
|
|
|
character*(*) active_var_file |
|
|
_RL adactive_var(1-olx:snx+olx,1-oly:sny+oly,nsx,nsy) |
|
|
integer irec |
|
|
integer myOptimIter |
|
|
integer mythid |
|
|
integer bi |
|
|
integer bj |
|
|
logical doglobalread |
|
|
logical lAdInit |
|
|
|
|
|
c == local variables == |
|
|
|
|
|
integer mynr |
|
|
integer il |
|
|
integer ilnblnk |
|
|
character*(2) adpref |
|
|
character*(80) fname |
|
|
|
|
|
c == functions == |
|
|
|
|
|
external ilnblnk |
|
|
|
|
|
c == end of interface == |
|
|
|
|
|
mynr = 1 |
|
|
adpref = 'ad' |
|
|
write(fname(1:80),'(a)') ' ' |
|
|
|
|
|
il = ilnblnk(active_var_file) |
|
|
|
|
|
write(fname(1:2), '(a)') adpref |
|
|
write(fname(3:2+il),'(a)') active_var_file(1:il) |
|
|
|
|
|
call active_read_tile_rl( |
|
|
I fname, |
|
|
U adactive_var, |
|
|
I doglobalread, |
|
|
I lAdInit, |
|
|
I irec, |
|
|
I mynr, |
|
|
I bi, |
|
|
I bj, |
|
|
I REVERSE_SIMULATION, |
|
|
I myOptimIter, |
|
|
I mythid |
|
|
& ) |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
subroutine adactive_read_tile_xyz( |
|
|
I active_var_file, |
|
|
I irec, |
|
|
I doglobalread, |
|
|
I bi, |
|
|
I bj, |
|
|
I lAdInit, |
|
|
I myOptimIter, |
|
|
I mythid, |
|
|
U adactive_var |
|
|
& ) |
|
|
|
|
|
c ================================================================== |
|
|
c SUBROUTINE adactive_read_tile_xyz |
|
|
c ================================================================== |
|
|
c |
|
|
c o Adjoint of active_read_tile_xyz. |
|
|
c |
|
|
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
|
|
c |
|
|
c changed: Christian Eckert eckert@mit.edu 11-Feb-2000 |
|
|
c |
|
|
c - Restructured the code in order to create a package |
|
|
c for the MITgcmUV.c |
|
|
c |
|
|
c changed: Christian Eckert eckert@mit.edu 24-Apr-2000 |
|
|
c |
|
|
c - Added routines that do active writes on tiles |
|
|
c instead of a whole thread. |
|
|
c |
|
|
c changed: Patrick Heimbach heimbach@mit.edu 27-May-2000 |
|
|
c |
|
|
c - changed suboutine argument list: |
|
|
c dropped mycurrentiter, mycurrenttime |
|
|
c |
|
|
c ================================================================== |
|
|
c SUBROUTINE adactive_read_tile_xyz |
|
|
c ================================================================== |
|
|
|
|
|
implicit none |
|
|
|
|
|
c == global variables == |
|
|
|
|
|
#include "EEPARAMS.h" |
|
|
#include "SIZE.h" |
|
|
|
|
|
c == routine arguments == |
|
|
|
|
|
character*(*) active_var_file |
|
|
_RL adactive_var(1-olx:snx+olx,1-oly:sny+oly,nr,nsx,nsy) |
|
|
integer irec |
|
|
integer myOptimIter |
|
|
integer mythid |
|
|
integer bi |
|
|
integer bj |
|
|
logical doglobalread |
|
|
logical lAdInit |
|
|
|
|
|
c == local variables == |
|
|
|
|
|
integer mynr |
|
|
integer il |
|
|
integer ilnblnk |
|
|
character*(2) adpref |
|
|
character*(80) fname |
|
|
|
|
|
c == functions == |
|
|
|
|
|
external ilnblnk |
|
|
|
|
|
c == end of interface == |
|
|
|
|
|
mynr = nr |
|
|
adpref = 'ad' |
|
|
write(fname(1:80),'(a)') ' ' |
|
|
|
|
|
il = ilnblnk(active_var_file) |
|
|
|
|
|
write(fname(1:2), '(a)') adpref |
|
|
write(fname(3:2+il),'(a)') active_var_file(1:il) |
|
|
|
|
|
call active_read_tile_rl( |
|
|
I fname, |
|
|
U adactive_var, |
|
|
I doglobalread, |
|
|
I lAdInit, |
|
|
I irec, |
|
|
I mynr, |
|
|
I bi, |
|
|
I bj, |
|
|
I REVERSE_SIMULATION, |
|
|
I myOptimIter, |
|
|
I mythid |
|
|
& ) |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
subroutine adactive_write_tile_xy( |
|
|
I active_var_file, |
|
|
I irec, |
|
|
I bi, |
|
|
I bj, |
|
|
I myOptimIter, |
|
|
I mythid, |
|
|
U adactive_var |
|
|
& ) |
|
|
|
|
|
|
|
|
c ================================================================== |
|
|
c SUBROUTINE adactive_write_tile_xy |
|
|
c ================================================================== |
|
|
c |
|
|
c o Adjoint of active_write_tile_xy. |
|
|
c |
|
|
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
|
|
c |
|
|
c changed: Christian Eckert eckert@mit.edu 11-Feb-2000 |
|
|
c |
|
|
c - Restructured the code in order to create a package |
|
|
c for the MITgcmUV.c |
|
|
c |
|
|
c changed: Christian Eckert eckert@mit.edu 24-Apr-2000 |
|
|
c |
|
|
c - Added routines that do active writes on tiles |
|
|
c instead of a whole thread. |
|
|
c |
|
|
c changed: Patrick Heimbach heimbach@mit.edu 27-May-2000 |
|
|
c |
|
|
c - changed suboutine argument list: |
|
|
c dropped mycurrentiter, mycurrenttime |
|
|
c |
|
|
c ================================================================== |
|
|
c SUBROUTINE adactive_write_tile_xy |
|
|
c ================================================================== |
|
|
|
|
|
implicit none |
|
|
|
|
|
c == global variables == |
|
|
|
|
|
#include "EEPARAMS.h" |
|
|
#include "SIZE.h" |
|
|
|
|
|
c == routine arguments == |
|
|
|
|
|
character*(*) active_var_file |
|
|
_RL adactive_var(1-olx:snx+olx,1-oly:sny+oly,nsx,nsy) |
|
|
integer irec |
|
|
integer bi |
|
|
integer bj |
|
|
integer myOptimIter |
|
|
integer mythid |
|
|
|
|
|
c == local variables == |
|
|
|
|
|
integer mynr |
|
|
integer il |
|
|
integer ilnblnk |
|
|
character*(2) adpref |
|
|
character*(80) fname |
|
|
logical globalfile |
|
|
|
|
|
c == functions == |
|
|
|
|
|
external ilnblnk |
|
|
|
|
|
c == end of interface == |
|
|
|
|
|
mynr = 1 |
|
|
adpref = 'ad' |
|
|
write(fname(1:80),'(a)') ' ' |
|
|
|
|
|
il = ilnblnk(active_var_file) |
|
|
|
|
|
write(fname(1:2), '(a)') adpref |
|
|
write(fname(3:2+il),'(a)') active_var_file(1:il) |
|
|
|
|
|
globalfile = .false. |
|
|
|
|
|
call active_write_tile_rl( |
|
|
I fname, |
|
|
U adactive_var, |
|
|
I globalfile, |
|
|
I irec, |
|
|
I mynr, |
|
|
I bi, |
|
|
I bj, |
|
|
I REVERSE_SIMULATION, |
|
|
I myOptimIter, |
|
|
I mythid |
|
|
& ) |
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
subroutine adactive_write_tile_xyz( |
|
|
I active_var_file, |
|
|
I irec, |
|
|
I bi, |
|
|
I bj, |
|
|
I myOptimIter, |
|
|
I mythid, |
|
|
U adactive_var |
|
|
& ) |
|
|
|
|
|
|
|
|
c ================================================================== |
|
|
c SUBROUTINE adactive_write_tile_xyz |
|
|
c ================================================================== |
|
|
c |
|
|
c o Adjoint of active_write_tile_xyz. |
|
|
c |
|
|
c started: Christian Eckert eckert@mit.edu 24-May-1999 |
|
|
c |
|
|
c changed: Christian Eckert eckert@mit.edu 11-Feb-2000 |
|
|
c |
|
|
c - Restructured the code in order to create a package |
|
|
c for the MITgcmUV.c |
|
|
c |
|
|
c changed: Christian Eckert eckert@mit.edu 24-Apr-2000 |
|
|
c |
|
|
c - Added routines that do active writes on tiles |
|
|
c instead of a whole thread. |
|
|
c |
|
|
c changed: Patrick Heimbach heimbach@mit.edu 27-May-2000 |
|
|
c |
|
|
c - changed suboutine argument list: |
|
|
c dropped mycurrentiter, mycurrenttime |
|
|
c |
|
|
c ================================================================== |
|
|
c SUBROUTINE adactive_write_tile_xyz |
|
|
c ================================================================== |
|
|
|
|
|
implicit none |
|
|
|
|
|
c == global variables == |
|
|
|
|
|
#include "EEPARAMS.h" |
|
|
#include "SIZE.h" |
|
|
|
|
|
c == routine arguments == |
|
|
|
|
|
character*(*) active_var_file |
|
|
_RL adactive_var(1-olx:snx+olx,1-oly:sny+oly,nr,nsx,nsy) |
|
|
integer irec |
|
|
integer bi |
|
|
integer bj |
|
|
integer myOptimIter |
|
|
integer mythid |
|
|
|
|
|
c == local variables == |
|
|
|
|
|
integer mynr |
|
|
integer il |
|
|
integer ilnblnk |
|
|
character*(2) adpref |
|
|
character*(80) fname |
|
|
logical globalfile |
|
|
|
|
|
c == functions == |
|
|
|
|
|
external ilnblnk |
|
|
|
|
|
c == end of interface == |
|
|
|
|
|
mynr = nr |
|
|
adpref = 'ad' |
|
|
write(fname(1:80),'(a)') ' ' |
|
|
|
|
|
il = ilnblnk(active_var_file) |
|
|
|
|
|
write(fname(1:2),'(a)') adpref |
|
|
write(fname(3:2+il),'(a)') active_var_file(1:il) |
|
|
|
|
|
globalfile = .false. |
|
|
|
|
|
call active_write_tile_rl( |
|
|
I fname, |
|
|
U adactive_var, |
|
|
I globalfile, |
|
|
I irec, |
|
|
I mynr, |
|
|
I bi, |
|
|
I bj, |
|
|
I REVERSE_SIMULATION, |
|
|
I myOptimIter, |
|
|
I mythid |
|
|
& ) |
|
|
|
|
|
end |
|