/[MITgcm]/MITgcm/pkg/ctrl/ctrl_pack.F
ViewVC logotype

Diff of /MITgcm/pkg/ctrl/ctrl_pack.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.27 by heimbach, Fri May 12 13:35:37 2006 UTC revision 1.31 by dfer, Tue Jan 15 19:56:27 2008 UTC
# Line 115  c--   Assign file names. Line 115  c--   Assign file names.
115        call ctrl_set_fname(xx_precip_file, fname_precip, mythid)        call ctrl_set_fname(xx_precip_file, fname_precip, mythid)
116        call ctrl_set_fname(xx_swflux_file, fname_swflux, mythid)        call ctrl_set_fname(xx_swflux_file, fname_swflux, mythid)
117        call ctrl_set_fname(xx_swdown_file, fname_swdown, mythid)        call ctrl_set_fname(xx_swdown_file, fname_swdown, mythid)
118          call ctrl_set_fname(xx_lwflux_file, fname_lwflux, mythid)
119          call ctrl_set_fname(xx_lwdown_file, fname_lwdown, mythid)
120          call ctrl_set_fname(xx_evap_file, fname_evap, mythid)
121          call ctrl_set_fname(xx_snowprecip_file, fname_snowprecip, mythid)
122          call ctrl_set_fname(xx_apressure_file, fname_apressure, mythid)
123          call ctrl_set_fname(xx_runoff_file, fname_runoff, mythid)
124    
125        call ctrl_set_fname(xx_uwind_file, fname_uwind, mythid)        call ctrl_set_fname(xx_uwind_file, fname_uwind, mythid)
126        call ctrl_set_fname(xx_vwind_file, fname_vwind, mythid)        call ctrl_set_fname(xx_vwind_file, fname_vwind, mythid)
127        call ctrl_set_fname(xx_obcsn_file, fname_obcsn, mythid)        call ctrl_set_fname(xx_obcsn_file, fname_obcsn, mythid)
# Line 126  c--   Assign file names. Line 133  c--   Assign file names.
133        call ctrl_set_fname(xx_tr1_file, fname_tr1, mythid)        call ctrl_set_fname(xx_tr1_file, fname_tr1, mythid)
134        call ctrl_set_fname(xx_sst_file, fname_sst, mythid)        call ctrl_set_fname(xx_sst_file, fname_sst, mythid)
135        call ctrl_set_fname(xx_sss_file, fname_sss, mythid)        call ctrl_set_fname(xx_sss_file, fname_sss, mythid)
136        call ctrl_set_fname(xx_hfacc_file, fname_hfacc, mythid)        call ctrl_set_fname(xx_depth_file, fname_depth, mythid)
137        call ctrl_set_fname(xx_efluxy_file, fname_efluxy, mythid)        call ctrl_set_fname(xx_efluxy_file, fname_efluxy, mythid)
138        call ctrl_set_fname(xx_efluxp_file, fname_efluxp, mythid)        call ctrl_set_fname(xx_efluxp_file, fname_efluxp, mythid)
139        call ctrl_set_fname(xx_bottomdrag_file, fname_bottomdrag, mythid)        call ctrl_set_fname(xx_bottomdrag_file, fname_bottomdrag, mythid)
# Line 137  c--   Assign file names. Line 144  c--   Assign file names.
144        call ctrl_set_fname(xx_etan_file, fname_etan, mythid)        call ctrl_set_fname(xx_etan_file, fname_etan, mythid)
145        call ctrl_set_fname(xx_relaxsst_file, fname_relaxsst, mythid)        call ctrl_set_fname(xx_relaxsst_file, fname_relaxsst, mythid)
146        call ctrl_set_fname(xx_relaxsss_file, fname_relaxsss, mythid)        call ctrl_set_fname(xx_relaxsss_file, fname_relaxsss, mythid)
147          call ctrl_set_fname(xx_siarea_file, fname_siarea, mythid)
148          call ctrl_set_fname(xx_siheff_file, fname_siheff, mythid)
149          call ctrl_set_fname(xx_sihsnow_file, fname_sihsnow, mythid)
150    cHFLUXM_CONTROL
151          call ctrl_set_fname(xx_hfluxm_file, fname_hfluxm, mythid)
152    cHFLUXM_CONTROL
153    
154  c--   Only the master thread will do I/O.  c--   Only the master thread will do I/O.
155        _BEGIN_MASTER( mythid )        _BEGIN_MASTER( mythid )
# Line 373  C     place holder of obsolete variable Line 386  C     place holder of obsolete variable
386            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
387            write(weighttype(1:80),'(a)') "wsss"            write(weighttype(1:80),'(a)') "wsss"
388            call ctrl_set_pack_xy(            call ctrl_set_pack_xy(
389       &         cunit, ivartype, fname_sss(ictrlgrad), "maskCtrlC",       &         cunit, ivartype, fname_sss(ictrlgrad),
390       &         weighttype, lxxadxx, mythid)       &         "maskCtrlC", weighttype, lxxadxx, mythid)
391  #endif  #endif
392    
393  #ifdef ALLOW_HFACC_CONTROL  #ifdef ALLOW_DEPTH_CONTROL
394            ivartype = 20            ivartype = 20
395            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
396            write(weighttype(1:80),'(a)') "whfacc"            write(weighttype(1:80),'(a)') "wdepth"
 # ifdef ALLOW_HFACC3D_CONTROL  
           call ctrl_set_pack_xyz(  
      &         cunit, ivartype, fname_hfacc(ictrlgrad), "maskCtrlC",  
      &         weighttype, wunit, lxxadxx, mythid)  
 # else  
397            call ctrl_set_pack_xy(            call ctrl_set_pack_xy(
398       &         cunit, ivartype, fname_hfacc(ictrlgrad), "maskCtrlC",       &         cunit, ivartype, fname_depth(ictrlgrad),
399       &         weighttype, lxxadxx, mythid)       &         "maskCtrlC", weighttype, lxxadxx, mythid)
400  # endif  #endif /* ALLOW_DEPTH_CONTROL */
 #endif  
401    
402  #ifdef ALLOW_EFLUXY0_CONTROL  #ifdef ALLOW_EFLUXY0_CONTROL
403            ivartype = 21            ivartype = 21
# Line 419  C     place holder of obsolete variable Line 426  C     place holder of obsolete variable
426       &      weighttype, lxxadxx, mythid)       &      weighttype, lxxadxx, mythid)
427  #endif  #endif
428    
429    #ifdef ALLOW_HFLUXM_CONTROL
430              ivartype = 24
431              write(weighttype(1:80),'(80a)') ' '
432              write(weighttype(1:80),'(a)') "whfluxm"
433              call ctrl_set_pack_xy(
434         &         cunit, ivartype, fname_hfluxm(ictrlgrad), "maskCtrlC",
435         &         weighttype, lxxadxx, mythid)
436    #endif
437    
438  #ifdef ALLOW_EDTAUX_CONTROL  #ifdef ALLOW_EDTAUX_CONTROL
439            ivartype = 25            ivartype = 25
440            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
# Line 460  C     place holder of obsolete variable Line 476  C     place holder of obsolete variable
476            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
477            write(weighttype(1:80),'(a)') "wetan"            write(weighttype(1:80),'(a)') "wetan"
478            call ctrl_set_pack_xy(            call ctrl_set_pack_xy(
479       &         cunit, ivartype, fname_etan(ictrlgrad), "maskCtrlC",       &         cunit, ivartype, fname_etan(ictrlgrad),
480       &         weighttype, lxxadxx, mythid)       &         "maskCtrlC", weighttype, lxxadxx, mythid)
481  #endif  #endif
482    
483  #ifdef ALLOW_RELAXSST_CONTROL  #ifdef ALLOW_RELAXSST_CONTROL
# Line 469  C     place holder of obsolete variable Line 485  C     place holder of obsolete variable
485            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
486            write(weighttype(1:80),'(a)') "wrelaxsst"            write(weighttype(1:80),'(a)') "wrelaxsst"
487            call ctrl_set_pack_xy(            call ctrl_set_pack_xy(
488       &         cunit, ivartype, fname_relaxsst(ictrlgrad), "maskCtrlC",       &         cunit, ivartype, fname_relaxsst(ictrlgrad),
489       &         weighttype, lxxadxx, mythid)       &         "maskCtrlC", weighttype, lxxadxx, mythid)
490  #endif  #endif
491    
492  #ifdef ALLOW_RELAXSSS_CONTROL  #ifdef ALLOW_RELAXSSS_CONTROL
# Line 478  C     place holder of obsolete variable Line 494  C     place holder of obsolete variable
494            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
495            write(weighttype(1:80),'(a)') "wrelaxsss"            write(weighttype(1:80),'(a)') "wrelaxsss"
496            call ctrl_set_pack_xy(            call ctrl_set_pack_xy(
497       &         cunit, ivartype, fname_relaxsss(ictrlgrad), "maskCtrlC",       &         cunit, ivartype, fname_relaxsss(ictrlgrad),
498       &         weighttype, lxxadxx, mythid)       &         "maskCtrlC", weighttype, lxxadxx, mythid)
499  #endif  #endif
500    
501  #ifdef ALLOW_PRECIP_CONTROL  #ifdef ALLOW_PRECIP_CONTROL
# Line 487  C     place holder of obsolete variable Line 503  C     place holder of obsolete variable
503            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
504            write(weighttype(1:80),'(a)') "wprecip"            write(weighttype(1:80),'(a)') "wprecip"
505            call ctrl_set_pack_xy(            call ctrl_set_pack_xy(
506       &         cunit, ivartype, fname_precip(ictrlgrad), "maskCtrlC",       &         cunit, ivartype, fname_precip(ictrlgrad),
507       &         weighttype, lxxadxx, mythid)       &         "maskCtrlC", weighttype, lxxadxx, mythid)
508  #endif  #endif
509    
510  #ifdef ALLOW_SWFLUX_CONTROL  #ifdef ALLOW_SWFLUX_CONTROL
# Line 496  C     place holder of obsolete variable Line 512  C     place holder of obsolete variable
512            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
513            write(weighttype(1:80),'(a)') "wswflux"            write(weighttype(1:80),'(a)') "wswflux"
514            call ctrl_set_pack_xy(            call ctrl_set_pack_xy(
515       &         cunit, ivartype, fname_swflux(ictrlgrad), "maskCtrlC",       &         cunit, ivartype, fname_swflux(ictrlgrad),
516       &         weighttype, lxxadxx, mythid)       &         "maskCtrlC", weighttype, lxxadxx, mythid)
517  #endif  #endif
518    
519  #ifdef ALLOW_SWDOWN_CONTROL  #ifdef ALLOW_SWDOWN_CONTROL
# Line 505  C     place holder of obsolete variable Line 521  C     place holder of obsolete variable
521            write(weighttype(1:80),'(80a)') ' '            write(weighttype(1:80),'(80a)') ' '
522            write(weighttype(1:80),'(a)') "wswdown"            write(weighttype(1:80),'(a)') "wswdown"
523            call ctrl_set_pack_xy(            call ctrl_set_pack_xy(
524       &         cunit, ivartype, fname_swdown(ictrlgrad), "maskCtrlC",       &         cunit, ivartype, fname_swdown(ictrlgrad),
525       &         weighttype, lxxadxx, mythid)       &         "maskCtrlC", weighttype, lxxadxx, mythid)
526    #endif
527    
528    #ifdef ALLOW_LWFLUX_CONTROL
529              ivartype = 35
530              write(weighttype(1:80),'(80a)') ' '
531              write(weighttype(1:80),'(a)') "wlwflux"
532              call ctrl_set_pack_xy(
533         &         cunit, ivartype, fname_lwflux(ictrlgrad),
534         &         "maskCtrlC", weighttype, lxxadxx, mythid)
535    #endif
536    
537    #ifdef ALLOW_LWDOWN_CONTROL
538              ivartype = 36
539              write(weighttype(1:80),'(80a)') ' '
540              write(weighttype(1:80),'(a)') "wlwdown"
541              call ctrl_set_pack_xy(
542         &         cunit, ivartype, fname_lwdown(ictrlgrad),
543         &         "maskCtrlC", weighttype, lxxadxx, mythid)
544    #endif
545    
546    #ifdef ALLOW_EVAP_CONTROL
547              ivartype = 37
548              write(weighttype(1:80),'(80a)') ' '
549              write(weighttype(1:80),'(a)') "wevap"
550              call ctrl_set_pack_xy(
551         &         cunit, ivartype, fname_evap(ictrlgrad),
552         &         "maskCtrlC", weighttype, lxxadxx, mythid)
553    #endif
554    
555    #ifdef ALLOW_SNOWPRECIP_CONTROL
556              ivartype = 38
557              write(weighttype(1:80),'(80a)') ' '
558              write(weighttype(1:80),'(a)') "wsnowprecip"
559              call ctrl_set_pack_xy(
560         &         cunit, ivartype, fname_snowprecip(ictrlgrad),
561         &         "maskCtrlC", weighttype, lxxadxx, mythid)
562    #endif
563    
564    #ifdef ALLOW_APRESSURE_CONTROL
565              ivartype = 39
566              write(weighttype(1:80),'(80a)') ' '
567              write(weighttype(1:80),'(a)') "wapressure"
568              call ctrl_set_pack_xy(
569         &         cunit, ivartype, fname_apressure(ictrlgrad),
570         &         "maskCtrlC", weighttype, lxxadxx, mythid)
571    #endif
572    
573    #ifdef ALLOW_RUNOFF_CONTROL
574              ivartype = 40
575              write(weighttype(1:80),'(80a)') ' '
576              write(weighttype(1:80),'(a)') "wrunoff"
577              call ctrl_set_pack_xy(
578         &         cunit, ivartype, fname_runoff(ictrlgrad),
579         &         "maskCtrlC", weighttype, lxxadxx, mythid)
580    #endif
581    
582    #ifdef ALLOW_SIAREA_CONTROL
583              ivartype = 41
584              write(weighttype(1:80),'(80a)') ' '
585              write(weighttype(1:80),'(a)') "wunit"
586              call ctrl_set_pack_xy(
587         &         cunit, ivartype, fname_siarea(ictrlgrad),
588         &         "maskCtrlC", weighttype, lxxadxx, mythid)
589    #endif
590    
591    #ifdef ALLOW_SIHEFF_CONTROL
592              ivartype = 42
593              write(weighttype(1:80),'(80a)') ' '
594              write(weighttype(1:80),'(a)') "wunit"
595              call ctrl_set_pack_xy(
596         &         cunit, ivartype, fname_siheff(ictrlgrad),
597         &         "maskCtrlC", weighttype, lxxadxx, mythid)
598    #endif
599    
600    #ifdef ALLOW_SIHSNOW_CONTROL
601              ivartype = 43
602              write(weighttype(1:80),'(80a)') ' '
603              write(weighttype(1:80),'(a)') "wunit"
604              call ctrl_set_pack_xy(
605         &         cunit, ivartype, fname_sihsnow(ictrlgrad),
606         &         "maskCtrlC", weighttype, lxxadxx, mythid)
607  #endif  #endif
608    
609            close ( cunit )            close ( cunit )

Legend:
Removed from v.1.27  
changed lines
  Added in v.1.31

  ViewVC Help
Powered by ViewVC 1.1.22