|
C |
|
|
C $Header$ |
|
|
C $Name$ |
|
1 |
|
|
2 |
#include "CTRL_CPPOPTIONS.h" |
#include "CTRL_CPPOPTIONS.h" |
3 |
|
|
|
|
|
4 |
subroutine ctrl_set_pack_xz( |
subroutine ctrl_set_pack_xz( |
5 |
& cunit, ivartype, fname, masktype,weighttype, |
& cunit, ivartype, fname, masktype,weighttype, |
6 |
& weightfld, lxxadxx, mythid) |
& weightfld, lxxadxx, mythid) |
32 |
#include "GRID.h" |
#include "GRID.h" |
33 |
|
|
34 |
#include "ctrl.h" |
#include "ctrl.h" |
|
#include "cost.h" |
|
35 |
|
|
36 |
#ifdef ALLOW_ECCO_OPTIMIZATION |
#ifdef ALLOW_ECCO_OPTIMIZATION |
37 |
#include "optim.h" |
#include "optim.h" |
72 |
character*(80) weightname |
character*(80) weightname |
73 |
cgg) |
cgg) |
74 |
|
|
75 |
_RL cbuff ( snx*nsx*npx*nsy*npy ) |
real*4 cbuff ( snx*nsx*npx*nsy*npy ) |
76 |
_RL globfldxz ( snx,nsx,npx,nsy,npy,nr ) |
_RL globfldxz ( snx,nsx,npx,nsy,npy,nr ) |
77 |
_RL globfld3d ( snx,nsx,npx,sny,nsy,npy,nr ) |
_RL globfld3d ( snx,nsx,npx,sny,nsy,npy,nr ) |
78 |
_RL globmskxz ( snx,nsx,npx,nsy,npy,nr,nobcs ) |
_RL globmskxz ( snx,nsx,npx,nsy,npy,nr,nobcs ) |
206 |
do ip = 1,nPx |
do ip = 1,nPx |
207 |
do bi = itlo,ithi |
do bi = itlo,ithi |
208 |
do i = imin,imax |
do i = imin,imax |
209 |
|
jj=mod((j-1)*nr+k-1,sny)+1 |
210 |
|
kk=int((j-1)*nr+K-1)/sny+1 |
211 |
if (globmskxz(i,bi,ip,bj,jp,k,iobcs) .ne. 0. ) then |
if (globmskxz(i,bi,ip,bj,jp,k,iobcs) .ne. 0. ) then |
212 |
cbuffindex = cbuffindex + 1 |
cbuffindex = cbuffindex + 1 |
|
jj=mod((j-1)*nr+k-1,sny)+1 |
|
|
kk=int((j-1)*nr+K-1)/sny+1 |
|
213 |
#ifdef ALLOW_NONDIMENSIONAL_CONTROL_IO |
#ifdef ALLOW_NONDIMENSIONAL_CONTROL_IO |
214 |
if (lxxadxx) then |
if (lxxadxx) then |
215 |
cbuff(cbuffindex) = |
cbuff(cbuffindex) = |