93 |
#include "netcdf.inc" |
#include "netcdf.inc" |
94 |
#include "mnc_common.h" |
#include "mnc_common.h" |
95 |
#include "SIZE.h" |
#include "SIZE.h" |
96 |
#include "MNC_SIZE.h" |
#include "MNC_BUFF.h" |
97 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
98 |
#include "PARAMS.h" |
#include "PARAMS.h" |
99 |
#include "MNC_PARAMS.h" |
#include "MNC_PARAMS.h" |
107 |
|
|
108 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
109 |
integer i,j,k, indv,nvf,nvl, n1,n2, igrid, ntot, indu |
integer i,j,k, indv,nvf,nvl, n1,n2, igrid, ntot, indu |
110 |
integer bis,bie, bjs,bje, uniq_tnum, nfname, iseq |
integer bis,bie, bjs,bje, uniq_tnum, uniq_fnum, nfname, iseq |
111 |
integer fid, idv, indvids, ndim, indf, err |
integer fid, idv, indvids, ndim, indf, err |
112 |
integer lbi,lbj, bidim,bjdim, unlim_sz, kr |
integer lbi,lbj, bidim,bjdim, unlim_sz, kr |
113 |
integer p(9),s(9),e(9), dimnc(9) |
integer p(9),s(9),e(9), dimnc(9) |
117 |
character*(MAX_LEN_MBUF) msgbuf |
character*(MAX_LEN_MBUF) msgbuf |
118 |
character*(MNC_MAX_CHAR) fname |
character*(MNC_MAX_CHAR) fname |
119 |
character*(MNC_MAX_CHAR) path_fname |
character*(MNC_MAX_CHAR) path_fname |
120 |
|
character*(MNC_MAX_CHAR) tmpnm |
121 |
REAL*8 resh_d( MNC_MAX_BUFF ) |
REAL*8 resh_d( MNC_MAX_BUFF ) |
122 |
REAL*4 resh_r( MNC_MAX_BUFF ) |
REAL*4 resh_r( MNC_MAX_BUFF ) |
123 |
INTEGER resh_i( MNC_MAX_BUFF ) |
INTEGER resh_i( MNC_MAX_BUFF ) |
189 |
fname(1:MNC_MAX_CHAR) = mnc_blank_name(1:MNC_MAX_CHAR) |
fname(1:MNC_MAX_CHAR) = mnc_blank_name(1:MNC_MAX_CHAR) |
190 |
n1 = IFNBLNK(fbname) |
n1 = IFNBLNK(fbname) |
191 |
n2 = ILNBLNK(fbname) |
n2 = ILNBLNK(fbname) |
192 |
|
|
193 |
|
#ifdef MNC_WRITE_OLDNAMES |
194 |
|
|
195 |
ntot = n2 - n1 + 1 |
ntot = n2 - n1 + 1 |
196 |
fname(1:ntot) = fbname(n1:n2) |
fname(1:ntot) = fbname(n1:n2) |
197 |
ntot = ntot + 1 |
ntot = ntot + 1 |
198 |
fname(ntot:ntot) = '.' |
fname(ntot:ntot) = '.' |
199 |
write(fname((ntot+1):(ntot+14)),'(i4.4,a1,i6.6,a3)') |
IF ( mnc_use_name_ni0 ) THEN |
200 |
& iseq,'.',uniq_tnum, '.nc' |
write(fname((ntot+1):(ntot+17)),'(i10.10,a1,i6.6)') |
201 |
nfname = ntot + 14 |
& nIter0,'.',uniq_tnum |
202 |
|
write(fname((ntot+18):(ntot+25)),'(a1,i4.4,a3)') |
203 |
|
& '.', iseq, '.nc' |
204 |
|
nfname = ntot + 25 |
205 |
|
ELSE |
206 |
|
write(fname((ntot+1):(ntot+14)),'(i4.4,a1,i6.6,a3)') |
207 |
|
& iseq,'.',uniq_tnum, '.nc' |
208 |
|
nfname = ntot + 14 |
209 |
|
ENDIF |
210 |
|
|
211 |
|
#else |
212 |
|
|
213 |
|
CALL MNC_PSNCM(tmpnm, uniq_tnum, MNC_DEF_TMNC) |
214 |
|
k = ILNBLNK(tmpnm) |
215 |
|
IF ( mnc_cw_cit(1,mnc_cw_fgci(indfg)) .GT. -1 ) THEN |
216 |
|
j = mnc_cw_cit(2,mnc_cw_fgci(indfg)) |
217 |
|
IF ( mnc_cw_fgis(indfg) .GT. j ) |
218 |
|
& j = mnc_cw_fgis(indfg) |
219 |
|
write(fname,'(a,a1,i10.10,a2,a,a3)') fbname(n1:n2), |
220 |
|
& '.', j, '.t', tmpnm(1:k), '.nc' |
221 |
|
ELSEIF ( mnc_cw_cit(1,mnc_cw_fgci(indfg)) .EQ. -1 ) THEN |
222 |
|
C Leave off the myIter value entirely |
223 |
|
write(fname,'(a,a2,a,a3)') fbname(n1:n2), '.t', |
224 |
|
& tmpnm(1:k),'.nc' |
225 |
|
ELSE |
226 |
|
C We have an error--bad flag value |
227 |
|
write(msgbuf,'(4a)') |
228 |
|
& 'MNC_CW_RX_W ERROR: bad mnc_cw_cit(1,...) ', |
229 |
|
& 'flag value for base name ''', fbname(fg1:fg2), |
230 |
|
& '''' |
231 |
|
CALL print_error(msgbuf, mythid) |
232 |
|
STOP 'ABNORMAL END: S/R MNC_CW_RX_W' |
233 |
|
ENDIF |
234 |
|
nfname = ILNBLNK(fname) |
235 |
|
|
236 |
|
#endif |
237 |
|
|
238 |
C Add the path to the file name |
C Add the path to the file name |
239 |
IF (mnc_use_outdir) THEN |
IF (mnc_use_outdir) THEN |
280 |
C Delete the now-full fname from the lookup tables since |
C Delete the now-full fname from the lookup tables since |
281 |
C we are all done writing to it. |
C we are all done writing to it. |
282 |
CALL MNC_FILE_CLOSE(fname, myThid) |
CALL MNC_FILE_CLOSE(fname, myThid) |
|
iseq = iseq + 1 |
|
283 |
indu = 1 |
indu = 1 |
284 |
mnc_cw_fgud(indfg) = 1 |
mnc_cw_fgud(indfg) = 1 |
285 |
|
|
286 |
|
#ifdef MNC_WRITE_OLDNAMES |
287 |
|
iseq = iseq + 1 |
288 |
mnc_cw_fgis(indfg) = iseq |
mnc_cw_fgis(indfg) = iseq |
289 |
|
#else |
290 |
|
IF (mnc_cw_cit(1,mnc_cw_fgci(indfg)) .LT. 0) THEN |
291 |
|
write(msgbuf,'(5a)') |
292 |
|
& 'MNC_CW_RX_W ERROR: output file for base name ''', |
293 |
|
& fbname(fg1:fg2), ''' is about to exceed the max ', |
294 |
|
& 'file size and is NOT ALLOWED an iteration value ', |
295 |
|
& 'within its file name' |
296 |
|
CALL print_error(msgbuf, mythid) |
297 |
|
STOP 'ABNORMAL END: S/R MNC_CW_RX_W' |
298 |
|
ELSEIF (mnc_cw_cit(3,mnc_cw_fgci(indfg)) .LT. 0) THEN |
299 |
|
write(msgbuf,'(5a)') |
300 |
|
& 'MNC_CW_RX_W ERROR: output file for base name ''', |
301 |
|
& fbname(fg1:fg2), ''' is about to exceed the max ', |
302 |
|
& 'file size and no next-iter has been specified--', |
303 |
|
& 'please see the MNC CITER functions' |
304 |
|
CALL print_error(msgbuf, mythid) |
305 |
|
STOP 'ABNORMAL END: S/R MNC_CW_RX_W' |
306 |
|
ENDIF |
307 |
|
mnc_cw_fgis(indfg) = mnc_cw_cit(3,mnc_cw_fgci(indfg)) |
308 |
|
C DO NOT BUMP THE CURRENT ITER FOR ALL FILES IN THIS CITER |
309 |
|
C GROUP SINCE THIS IS ONLY GROWTH TO AVOID FILE SIZE |
310 |
|
C LIMITS FOR THIS ONE BASENAME GROUP, NOT GROWTH OF THE |
311 |
|
C ENTIRE CITER GROUP !!! |
312 |
|
C mnc_cw_cit(2,mnc_cw_fgci(indfg)) |
313 |
|
C & = mnc_cw_cit(3,mnc_cw_fgci(indfg)) |
314 |
|
C mnc_cw_cit(3,mnc_cw_fgci(indfg)) = -1 |
315 |
|
#endif |
316 |
fs_isdone = 1 |
fs_isdone = 1 |
317 |
GOTO 10 |
GOTO 10 |
318 |
|
|
319 |
ENDIF |
ENDIF |
320 |
ENDIF |
ENDIF |
321 |
ENDIF |
ENDIF |
503 |
IF (vcount(1) .GT. MNC_MAX_BUFF) THEN |
IF (vcount(1) .GT. MNC_MAX_BUFF) THEN |
504 |
write(msgbuf,'(2a,I7,a)') 'MNC_MAX_BUFF is too small', |
write(msgbuf,'(2a,I7,a)') 'MNC_MAX_BUFF is too small', |
505 |
& '--please increase to at least ', |
& '--please increase to at least ', |
506 |
& vcount(1), ' in ''MNC_SIZE.h''' |
& vcount(1), ' in ''MNC_BUFF.h''' |
507 |
CALL PRINT_ERROR(msgBuf , 1) |
CALL PRINT_ERROR(msgBuf , 1) |
508 |
STOP 'ABNORMAL END: S/R MNC_CW_RX_W_OFFSET' |
STOP 'ABNORMAL END: S/R MNC_CW_RX_W_OFFSET' |
509 |
ENDIF |
ENDIF |
528 |
DO j1 = s(1),e(1) |
DO j1 = s(1),e(1) |
529 |
k1 = k2 + j1 |
k1 = k2 + j1 |
530 |
kr = kr + 1 |
kr = kr + 1 |
531 |
resh_i(kr) = var(k1) |
resh_i(kr) = MNC2I( var(k1) ) |
532 |
ENDDO |
ENDDO |
533 |
err = NF_PUT_VARA_INT(fid, idv, vstart, vcount, resh_i) |
err = NF_PUT_VARA_INT(fid, idv, vstart, vcount, resh_i) |
534 |
ENDIF |
ENDIF |
611 |
#include "netcdf.inc" |
#include "netcdf.inc" |
612 |
#include "mnc_common.h" |
#include "mnc_common.h" |
613 |
#include "SIZE.h" |
#include "SIZE.h" |
614 |
#include "MNC_SIZE.h" |
#include "MNC_BUFF.h" |
615 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
616 |
#include "PARAMS.h" |
#include "PARAMS.h" |
617 |
#include "MNC_PARAMS.h" |
#include "MNC_PARAMS.h" |
624 |
|
|
625 |
C !LOCAL VARIABLES: |
C !LOCAL VARIABLES: |
626 |
integer i,k, nvf,nvl, n1,n2, igrid, ntot, indu |
integer i,k, nvf,nvl, n1,n2, igrid, ntot, indu |
627 |
integer bis,bie, bjs,bje, uniq_tnum, nfname, fid, idv |
integer bis,bie, bjs,bje, uniq_tnum,uniq_fnum, nfname, fid, idv |
628 |
integer ndim, err, lbi,lbj, bidim,bjdim, unlim_sz, kr |
integer ndim, err, lbi,lbj, bidim,bjdim, unlim_sz, kr |
629 |
integer ind_vt, npath, unlid |
integer ind_vt, npath, unlid, f_or_t, ixoff,iyoff |
630 |
C integer f_sNx,f_sNy, alen, atype, ind_fv_ids, ierr, indf |
C integer f_sNx,f_sNy, alen, atype, ind_fv_ids, ierr, indf |
631 |
integer p(9),s(9),e(9), vstart(9),vcount(9), udo(9) |
integer p(9),s(9),e(9), vstart(9),vcount(9), udo(9) |
632 |
integer j1,j2,j3,j4,j5,j6,j7, k1,k2,k3,k4,k5,k6,k7 |
integer j1,j2,j3,j4,j5,j6,j7, k1,k2,k3,k4,k5,k6,k7 |
633 |
character*(MAX_LEN_MBUF) msgbuf |
character*(MAX_LEN_MBUF) msgbuf |
634 |
character*(MNC_MAX_CHAR) fname |
character*(MNC_MAX_CHAR) fname |
635 |
|
character*(MNC_MAX_CHAR) fname_zs |
636 |
|
character*(MNC_MAX_CHAR) tmpnm |
637 |
character*(MNC_MAX_CHAR) path_fname |
character*(MNC_MAX_CHAR) path_fname |
638 |
integer indfg, fg1,fg2 |
integer indfg, fg1,fg2 |
639 |
REAL*8 resh_d( MNC_MAX_BUFF ) |
REAL*8 resh_d( MNC_MAX_BUFF ) |
696 |
C Create the file name |
C Create the file name |
697 |
CALL MNC_CW_GET_TILE_NUM( lbi,lbj, uniq_tnum, myThid) |
CALL MNC_CW_GET_TILE_NUM( lbi,lbj, uniq_tnum, myThid) |
698 |
fname(1:MNC_MAX_CHAR) = mnc_blank_name(1:MNC_MAX_CHAR) |
fname(1:MNC_MAX_CHAR) = mnc_blank_name(1:MNC_MAX_CHAR) |
699 |
|
|
700 |
|
#ifdef MNC_READ_OLDNAMES |
701 |
|
|
702 |
n1 = IFNBLNK(fbname) |
n1 = IFNBLNK(fbname) |
703 |
n2 = ILNBLNK(fbname) |
n2 = ILNBLNK(fbname) |
704 |
ntot = n2 - n1 + 1 |
ntot = n2 - n1 + 1 |
718 |
nfname = npath + nfname |
nfname = npath + nfname |
719 |
ENDIF |
ENDIF |
720 |
|
|
721 |
C Open the existing file |
WRITE(fname_zs,'(2a,i4.4,a1,i6.6,a3)') |
722 |
C CALL MNC_FILE_TRY_READ( fname, ierr, indf, myThid) |
& mnc_indir_str(1:npath), fbname(n1:n2), |
723 |
|
& 0, '.', uniq_tnum, '.nc' |
724 |
|
|
725 |
|
C The steps are: |
726 |
|
C (1) open the file in a READ-ONLY mode, |
727 |
|
C (2) get the var id for the current variable, |
728 |
|
C (3) read the data, and then |
729 |
|
C (4) close the file--theres no need to keep it open! |
730 |
|
|
|
C Check that the variable (VType) is defined within the file |
|
|
C CALL MNC_GET_FVINDS( fname, vtype, indf, ind_fv_ids, myThid) |
|
|
C IF ((indf .LT. 1) .OR. (ind_fv_ids .LT. 1)) THEN |
|
|
C write(msgbuf,'(4a)') 'MNC_CW_RX_R ERROR: vtype ''', |
|
|
C & vtype(nvf:nvl), ''' is not defined within file ''', |
|
|
C & fname(1:nfname) |
|
|
C CALL print_error(msgbuf, mythid) |
|
|
C STOP 'ABNORMAL END: S/R MNC_CW_RX_R' |
|
|
C ENDIF |
|
|
|
|
|
C The previous old junk is completely unnecessary. All we |
|
|
C should do is (1) open the file in a READ-ONLY mode, (2) get |
|
|
C the var id for the current variable, (3) read the data, and |
|
|
C then (4) quickly close the file since theres no need to keep |
|
|
C it open. |
|
731 |
write(msgbuf,'(4a)') 'MNC_CW_RX_R: cannot open', |
write(msgbuf,'(4a)') 'MNC_CW_RX_R: cannot open', |
732 |
& ' file ''', fname(1:nfname), ''' in read-only mode' |
& ' file ''', fname(1:nfname), ''' in read-only mode' |
733 |
err = NF_OPEN(fname, NF_NOWRITE, fid) |
err = NF_OPEN(fname, NF_NOWRITE, fid) |
734 |
|
IF ( err .NE. NF_NOERR ) THEN |
735 |
|
C If the initial open fails, try again using a name with a |
736 |
|
C zero sequence number inserted |
737 |
|
err = NF_OPEN(fname_zs, NF_NOWRITE, fid) |
738 |
|
ENDIF |
739 |
CALL MNC_HANDLE_ERR(err, msgbuf, myThid) |
CALL MNC_HANDLE_ERR(err, msgbuf, myThid) |
740 |
|
|
741 |
write(msgbuf,'(6a)') |
write(msgbuf,'(5a)') |
742 |
& 'MNC_CW_RX_R: cannot get id for variable ''', |
& 'MNC_CW_RX_R: cannot get id for variable ''', |
743 |
& vtype(nvf:nvl), '''in file ''', fname(1:nfname), '''' |
& vtype(nvf:nvl), '''in file ''', fname(1:nfname), '''' |
744 |
err = NF_INQ_VARID(fid, vtype, idv) |
err = NF_INQ_VARID(fid, vtype, idv) |
745 |
CALL MNC_HANDLE_ERR(err, msgbuf, myThid) |
CALL MNC_HANDLE_ERR(err, msgbuf, myThid) |
746 |
|
f_or_t = 0 |
747 |
|
|
748 |
|
#else |
749 |
|
|
750 |
|
C The sequence for PER-FACE and PER-TILE is: |
751 |
|
C (1) check whether a PER-FACE file exists |
752 |
|
C . (a) if only one face is used for the entire domain, |
753 |
|
C . then omit the face index from the file name |
754 |
|
C . (b) if the PER-FACE file exists and is somehow faulty, |
755 |
|
C . then we die with an error message |
756 |
|
C (2) if no PER-FACE file exists, then use a PER-TILE file |
757 |
|
|
758 |
|
C Create the PER-FACE file name |
759 |
|
n1 = IFNBLNK(fbname) |
760 |
|
n2 = ILNBLNK(fbname) |
761 |
|
C Add an iteraton count to the file name if its requested |
762 |
|
IF (mnc_cw_cit(1,mnc_cw_fgci(indfg)) .LT. 0) THEN |
763 |
|
WRITE(fname,'(a,a1)') fbname(n1:n2), '.' |
764 |
|
ELSE |
765 |
|
WRITE(fname,'(a,a1,i10.10,a1)') fbname(n1:n2), '.', |
766 |
|
& mnc_cw_cit(2,mnc_cw_fgci(indfg)), '.' |
767 |
|
ENDIF |
768 |
|
ntot = ILNBLNK(fname) |
769 |
|
path_fname(1:MNC_MAX_CHAR) = mnc_blank_name(1:MNC_MAX_CHAR) |
770 |
|
npath = ILNBLNK(mnc_indir_str) |
771 |
|
C Add the face index |
772 |
|
CALL MNC_CW_GET_FACE_NUM( lbi,lbj, uniq_fnum, myThid) |
773 |
|
IF ( uniq_fnum .EQ. -1 ) THEN |
774 |
|
C There is only one face |
775 |
|
WRITE(path_fname,'(2a,a2)') |
776 |
|
& mnc_indir_str(1:npath), fname(1:ntot), 'nc' |
777 |
|
ELSE |
778 |
|
CALL MNC_PSNCM(tmpnm, uniq_fnum, MNC_DEF_FMNC) |
779 |
|
k = ILNBLNK(tmpnm) |
780 |
|
WRITE(path_fname,'(2a,a1,a,a3)') |
781 |
|
& mnc_indir_str(1:npath), fname(1:ntot), 'f', |
782 |
|
& tmpnm(1:k), '.nc' |
783 |
|
ENDIF |
784 |
|
|
785 |
|
C Try to open the PER-FACE file |
786 |
|
C WRITE(*,*) 'trying: "', path_fname, '"' |
787 |
|
err = NF_OPEN(path_fname, NF_NOWRITE, fid) |
788 |
|
IF ( err .EQ. NF_NOERR ) THEN |
789 |
|
f_or_t = 1 |
790 |
|
ELSE |
791 |
|
|
792 |
|
C Create the PER-TILE file name |
793 |
|
CALL MNC_PSNCM(tmpnm, uniq_tnum, MNC_DEF_TMNC) |
794 |
|
k = ILNBLNK(tmpnm) |
795 |
|
path_fname(1:MNC_MAX_CHAR)=mnc_blank_name(1:MNC_MAX_CHAR) |
796 |
|
WRITE(path_fname,'(2a,a1,a,a3)') |
797 |
|
& mnc_indir_str(1:npath), fname(1:ntot), 't', |
798 |
|
& tmpnm(1:k), '.nc' |
799 |
|
C WRITE(*,*) 'trying: "', path_fname, '"' |
800 |
|
err = NF_OPEN(path_fname, NF_NOWRITE, fid) |
801 |
|
IF ( err .EQ. NF_NOERR ) THEN |
802 |
|
f_or_t = 0 |
803 |
|
ELSE |
804 |
|
k = ILNBLNK(path_fname) |
805 |
|
write(msgbuf,'(4a)') |
806 |
|
& 'MNC_CW_RX_R: cannot open either a per-face or a ', |
807 |
|
& 'per-tile file: last try was ''', path_fname(1:k), |
808 |
|
& '''' |
809 |
|
CALL print_error(msgbuf, mythid) |
810 |
|
STOP 'ABNORMAL END: S/R MNC_CW_RX_W' |
811 |
|
ENDIF |
812 |
|
|
813 |
|
ENDIF |
814 |
|
|
815 |
|
ntot = ILNBLNK(path_fname) |
816 |
|
write(msgbuf,'(5a)') |
817 |
|
& 'MNC_CW_RX_R: cannot get netCDF id for variable ''', |
818 |
|
& vtype(nvf:nvl), ''' in file ''', path_fname(1:ntot), |
819 |
|
& '''' |
820 |
|
err = NF_INQ_VARID(fid, vtype, idv) |
821 |
|
CALL MNC_HANDLE_ERR(err, msgbuf, myThid) |
822 |
|
|
823 |
|
k = ILNBLNK(path_fname) |
824 |
|
fname(1:k) = path_fname(1:k) |
825 |
|
nfname = k |
826 |
|
|
827 |
|
#endif |
828 |
|
|
829 |
|
IF ( f_or_t .EQ. 1 ) THEN |
830 |
|
|
831 |
|
C write(msgbuf,'(2a)') |
832 |
|
C & 'MNC_CW_RX_R: per-face reads are not yet ', |
833 |
|
C & 'implemented -- so pester Ed to finish them' |
834 |
|
C CALL print_error(msgbuf, mythid) |
835 |
|
C STOP 'ABNORMAL END: S/R MNC_CW_RX_W' |
836 |
|
|
837 |
|
C Get the X,Y PER-FACE offsets |
838 |
|
CALL MNC_CW_GET_XYFO(lbi,lbj, ixoff,iyoff, myThid) |
839 |
|
|
840 |
|
ENDIF |
841 |
|
|
842 |
|
C WRITE(*,*) 'f_or_t = ',f_or_t |
843 |
|
|
844 |
C Check that the current sNy,sNy values and the in-file values |
C Check that the current sNy,sNy values and the in-file values |
845 |
C are compatible and WARN (only warn) if not |
C are compatible and WARN (only warn) if not |
917 |
IF (i .LE. ndim) THEN |
IF (i .LE. ndim) THEN |
918 |
s(i) = mnc_cw_is(i,igrid) |
s(i) = mnc_cw_is(i,igrid) |
919 |
e(i) = mnc_cw_ie(i,igrid) |
e(i) = mnc_cw_ie(i,igrid) |
920 |
|
|
921 |
|
IF ( f_or_t .EQ. 1 ) THEN |
922 |
|
C Add the per-face X,Y offsets to the udo offset vector |
923 |
|
C since they accomplish the same thing |
924 |
|
IF ( mnc_cw_dn(i,igrid)(1:1) .EQ. 'X' ) THEN |
925 |
|
udo(i) = ixoff - 1 |
926 |
|
ELSEIF ( mnc_cw_dn(i,igrid)(1:1) .EQ. 'Y' ) THEN |
927 |
|
udo(i) = iyoff - 1 |
928 |
|
ENDIF |
929 |
|
ENDIF |
930 |
|
|
931 |
ENDIF |
ENDIF |
932 |
C Check for the unlimited dimension |
C Check for the unlimited dimension |
933 |
IF ((i .EQ. ndim) |
IF ((i .EQ. ndim) |
1001 |
IF (vcount(1) .GT. MNC_MAX_BUFF) THEN |
IF (vcount(1) .GT. MNC_MAX_BUFF) THEN |
1002 |
write(msgbuf,'(2a,I7,a)') 'MNC_MAX_BUFF is too small', |
write(msgbuf,'(2a,I7,a)') 'MNC_MAX_BUFF is too small', |
1003 |
& '--please increase to at least ', |
& '--please increase to at least ', |
1004 |
& vcount(1), ' in ''MNC_SIZE.h''' |
& vcount(1), ' in ''MNC_BUFF.h''' |
1005 |
CALL PRINT_ERROR(msgBuf , 1) |
CALL PRINT_ERROR(msgBuf , 1) |
1006 |
STOP 'ABNORMAL END: S/R MNC_CW_RX_R_OFFSET' |
STOP 'ABNORMAL END: S/R MNC_CW_RX_R_OFFSET' |
1007 |
ENDIF |
ENDIF |
1012 |
DO j1 = s(1),e(1) |
DO j1 = s(1),e(1) |
1013 |
k1 = k2 + j1 |
k1 = k2 + j1 |
1014 |
kr = kr + 1 |
kr = kr + 1 |
1015 |
var(k1) = resh_d(kr) |
var(k1) = MNCI2( resh_d(kr) ) |
1016 |
ENDDO |
ENDDO |
1017 |
ENDIF |
ENDIF |
1018 |
IF (stype(1:1) .EQ. 'R') THEN |
IF (stype(1:1) .EQ. 'R') THEN |
1021 |
DO j1 = s(1),e(1) |
DO j1 = s(1),e(1) |
1022 |
k1 = k2 + j1 |
k1 = k2 + j1 |
1023 |
kr = kr + 1 |
kr = kr + 1 |
1024 |
var(k1) = resh_r(kr) |
var(k1) = MNCI2( resh_r(kr) ) |
1025 |
ENDDO |
ENDDO |
1026 |
ENDIF |
ENDIF |
1027 |
IF (stype(1:1) .EQ. 'I') THEN |
IF (stype(1:1) .EQ. 'I') THEN |