<p><b>fanglin.yang@noaa.gov</b> 2014-03-06 12:16:50 -0700 (Thu, 06 Mar 2014)</p><p>remove pointer from Sfc_Var_ESMFMod.f and Nst_Var_ESMFMod.f. Pointers cause trouble for pass data between interfaces in dotstep.f<br>
</p><hr noshade><pre><font color="gray">Modified: branches/atmos_physics_gfs/src/core_atmos_physics_gfs/core_atmos_physics_gfs/physics_gfs/Nst_Var_ESMFMod.f
===================================================================
--- branches/atmos_physics_gfs/src/core_atmos_physics_gfs/core_atmos_physics_gfs/physics_gfs/Nst_Var_ESMFMod.f        2014-02-04 01:31:11 UTC (rev 2795)
+++ branches/atmos_physics_gfs/src/core_atmos_physics_gfs/core_atmos_physics_gfs/physics_gfs/Nst_Var_ESMFMod.f        2014-03-06 19:16:50 UTC (rev 2796)
@@ -19,25 +19,25 @@
  IMPLICIT none
 
  TYPE Nst_Var_Data
-    real(kind_phys),pointer:: slmsk    (:,:)=&gt;null()
-    real(kind_phys),pointer:: xt       (:,:)=&gt;null()
-    real(kind_phys),pointer:: xs       (:,:)=&gt;null()
-    real(kind_phys),pointer:: xu       (:,:)=&gt;null()
-    real(kind_phys),pointer:: xv       (:,:)=&gt;null()
-    real(kind_phys),pointer:: xz       (:,:)=&gt;null()
-    real(kind_phys),pointer:: zm       (:,:)=&gt;null()
-    real(kind_phys),pointer:: xtts     (:,:)=&gt;null()
-    real(kind_phys),pointer:: xzts     (:,:)=&gt;null()
-    real(kind_phys),pointer:: dt_cool  (:,:)=&gt;null()
-    real(kind_phys),pointer:: z_c      (:,:)=&gt;null()
-    real(kind_phys),pointer:: c_0      (:,:)=&gt;null()
-    real(kind_phys),pointer:: c_d      (:,:)=&gt;null()
-    real(kind_phys),pointer:: w_0      (:,:)=&gt;null()
-    real(kind_phys),pointer:: w_d      (:,:)=&gt;null()
-    real(kind_phys),pointer:: d_conv   (:,:)=&gt;null()
-    real(kind_phys),pointer:: ifd      (:,:)=&gt;null()
-    real(kind_phys),pointer:: tref     (:,:)=&gt;null()
-    real(kind_phys),pointer:: Qrain    (:,:)=&gt;null()
+    real(kind_phys),allocatable:: slmsk    (:,:)
+    real(kind_phys),allocatable:: xt       (:,:)
+    real(kind_phys),allocatable:: xs       (:,:)
+    real(kind_phys),allocatable:: xu       (:,:)
+    real(kind_phys),allocatable:: xv       (:,:)
+    real(kind_phys),allocatable:: xz       (:,:)
+    real(kind_phys),allocatable:: zm       (:,:)
+    real(kind_phys),allocatable:: xtts     (:,:)
+    real(kind_phys),allocatable:: xzts     (:,:)
+    real(kind_phys),allocatable:: dt_cool  (:,:)
+    real(kind_phys),allocatable:: z_c      (:,:)
+    real(kind_phys),allocatable:: c_0      (:,:)
+    real(kind_phys),allocatable:: c_d      (:,:)
+    real(kind_phys),allocatable:: w_0      (:,:)
+    real(kind_phys),allocatable:: w_d      (:,:)
+    real(kind_phys),allocatable:: d_conv   (:,:)
+    real(kind_phys),allocatable:: ifd      (:,:)
+    real(kind_phys),allocatable:: tref     (:,:)
+    real(kind_phys),allocatable:: Qrain    (:,:)
  end type Nst_Var_Data
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     contains

Modified: branches/atmos_physics_gfs/src/core_atmos_physics_gfs/core_atmos_physics_gfs/physics_gfs/Sfc_Var_ESMFMod.f
===================================================================
--- branches/atmos_physics_gfs/src/core_atmos_physics_gfs/core_atmos_physics_gfs/physics_gfs/Sfc_Var_ESMFMod.f        2014-02-04 01:31:11 UTC (rev 2795)
+++ branches/atmos_physics_gfs/src/core_atmos_physics_gfs/core_atmos_physics_gfs/physics_gfs/Sfc_Var_ESMFMod.f        2014-03-06 19:16:50 UTC (rev 2796)
@@ -21,114 +21,114 @@
  IMPLICIT none
 
  TYPE Sfc_Var_Data
-    real(kind=kind_phys),pointer:: tsea(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: smc(:,:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: sheleg(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: sncovr(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: stc(:,:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: tg3(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: zorl(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: cv(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: cvb(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: cvt(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: alvsf(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: alvwf(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: alnsf(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: alnwf(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: slmsk(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: vfrac(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: canopy(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: f10m(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: t2m(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: q2m(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: vtype(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: stype(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: facsf(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: facwf(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: uustar(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: ffmm(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: ffhh(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: hice(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: fice(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: tisfc(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: tprcp(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: srflag(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: snwdph(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: slc(:,:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: shdmin(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: shdmax(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: slope(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: snoalb(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: oro(:,:)=&gt;null()
+    real(kind=kind_phys),allocatable:: tsea(:,:)
+    real(kind=kind_phys),allocatable:: smc(:,:,:)
+    real(kind=kind_phys),allocatable:: sheleg(:,:)
+    real(kind=kind_phys),allocatable:: sncovr(:,:)
+    real(kind=kind_phys),allocatable:: stc(:,:,:)
+    real(kind=kind_phys),allocatable:: tg3(:,:)
+    real(kind=kind_phys),allocatable:: zorl(:,:)
+    real(kind=kind_phys),allocatable:: cv(:,:)
+    real(kind=kind_phys),allocatable:: cvb(:,:)
+    real(kind=kind_phys),allocatable:: cvt(:,:)
+    real(kind=kind_phys),allocatable:: alvsf(:,:)
+    real(kind=kind_phys),allocatable:: alvwf(:,:)
+    real(kind=kind_phys),allocatable:: alnsf(:,:)
+    real(kind=kind_phys),allocatable:: alnwf(:,:)
+    real(kind=kind_phys),allocatable:: slmsk(:,:)
+    real(kind=kind_phys),allocatable:: vfrac(:,:)
+    real(kind=kind_phys),allocatable:: canopy(:,:)
+    real(kind=kind_phys),allocatable:: f10m(:,:)
+    real(kind=kind_phys),allocatable:: t2m(:,:)
+    real(kind=kind_phys),allocatable:: q2m(:,:)
+    real(kind=kind_phys),allocatable:: vtype(:,:)
+    real(kind=kind_phys),allocatable:: stype(:,:)
+    real(kind=kind_phys),allocatable:: facsf(:,:)
+    real(kind=kind_phys),allocatable:: facwf(:,:)
+    real(kind=kind_phys),allocatable:: uustar(:,:)
+    real(kind=kind_phys),allocatable:: ffmm(:,:)
+    real(kind=kind_phys),allocatable:: ffhh(:,:)
+    real(kind=kind_phys),allocatable:: hice(:,:)
+    real(kind=kind_phys),allocatable:: fice(:,:)
+    real(kind=kind_phys),allocatable:: tisfc(:,:)
+    real(kind=kind_phys),allocatable:: tprcp(:,:)
+    real(kind=kind_phys),allocatable:: srflag(:,:)
+    real(kind=kind_phys),allocatable:: snwdph(:,:)
+    real(kind=kind_phys),allocatable:: slc(:,:,:)
+    real(kind=kind_phys),allocatable:: shdmin(:,:)
+    real(kind=kind_phys),allocatable:: shdmax(:,:)
+    real(kind=kind_phys),allocatable:: slope(:,:)
+    real(kind=kind_phys),allocatable:: snoalb(:,:)
+    real(kind=kind_phys),allocatable:: oro(:,:)
  end type Sfc_Var_Data
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  TYPE Flx_Var_Data
-    real(kind=kind_phys),pointer:: SFCDSW(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: COSZEN(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: PWAT(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: TMPMIN(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: TMPMAX(:,:)=&gt;null()
+    real(kind=kind_phys),allocatable:: SFCDSW(:,:)
+    real(kind=kind_phys),allocatable:: COSZEN(:,:)
+    real(kind=kind_phys),allocatable:: PWAT(:,:)
+    real(kind=kind_phys),allocatable:: TMPMIN(:,:)
+    real(kind=kind_phys),allocatable:: TMPMAX(:,:)
 !jwang add spfhmax/spfhmin
-    real(kind=kind_phys),pointer:: SPFHMIN(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SPFHMAX(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DUSFC(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DVSFC(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DTSFC(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DQSFC(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DLWSFC(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: ULWSFC(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: GFLUX(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: RUNOFF(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: EP(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: CLDWRK(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DUGWD(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DVGWD(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: PSMEAN(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: GESHEM(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: BENGSH(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SFCNSW(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SFCDLW(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: TSFLW(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: PSURF(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: U10M(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: V10M(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: HPBL(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: CHH(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: CMM(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: EPI(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DLWSFCI(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: ULWSFCI(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: USWSFCI(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DSWSFCI(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DTSFCI(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: DQSFCI(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: GFLUXI(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SRUNOFF(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: T1(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: Q1(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: U1(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: V1(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: ZLVL(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: EVBSA(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: EVCWA(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: TRANSA(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SBSNOA(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SNOWCA(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SOILM(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SNOHFA(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SMCWLT2(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: SMCREF2(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: suntim(:,:)=&gt;null()       ! sunshine duration time
-    real(kind=kind_phys),pointer:: sfcemis(:,:)=&gt;null()      ! surface emissivity
+    real(kind=kind_phys),allocatable:: SPFHMIN(:,:)
+    real(kind=kind_phys),allocatable:: SPFHMAX(:,:)
+    real(kind=kind_phys),allocatable:: DUSFC(:,:)
+    real(kind=kind_phys),allocatable:: DVSFC(:,:)
+    real(kind=kind_phys),allocatable:: DTSFC(:,:)
+    real(kind=kind_phys),allocatable:: DQSFC(:,:)
+    real(kind=kind_phys),allocatable:: DLWSFC(:,:)
+    real(kind=kind_phys),allocatable:: ULWSFC(:,:)
+    real(kind=kind_phys),allocatable:: GFLUX(:,:)
+    real(kind=kind_phys),allocatable:: RUNOFF(:,:)
+    real(kind=kind_phys),allocatable:: EP(:,:)
+    real(kind=kind_phys),allocatable:: CLDWRK(:,:)
+    real(kind=kind_phys),allocatable:: DUGWD(:,:)
+    real(kind=kind_phys),allocatable:: DVGWD(:,:)
+    real(kind=kind_phys),allocatable:: PSMEAN(:,:)
+    real(kind=kind_phys),allocatable:: GESHEM(:,:)
+    real(kind=kind_phys),allocatable:: BENGSH(:,:)
+    real(kind=kind_phys),allocatable:: SFCNSW(:,:)
+    real(kind=kind_phys),allocatable:: SFCDLW(:,:)
+    real(kind=kind_phys),allocatable:: TSFLW(:,:)
+    real(kind=kind_phys),allocatable:: PSURF(:,:)
+    real(kind=kind_phys),allocatable:: U10M(:,:)
+    real(kind=kind_phys),allocatable:: V10M(:,:)
+    real(kind=kind_phys),allocatable:: HPBL(:,:)
+    real(kind=kind_phys),allocatable:: CHH(:,:)
+    real(kind=kind_phys),allocatable:: CMM(:,:)
+    real(kind=kind_phys),allocatable:: EPI(:,:)
+    real(kind=kind_phys),allocatable:: DLWSFCI(:,:)
+    real(kind=kind_phys),allocatable:: ULWSFCI(:,:)
+    real(kind=kind_phys),allocatable:: USWSFCI(:,:)
+    real(kind=kind_phys),allocatable:: DSWSFCI(:,:)
+    real(kind=kind_phys),allocatable:: DTSFCI(:,:)
+    real(kind=kind_phys),allocatable:: DQSFCI(:,:)
+    real(kind=kind_phys),allocatable:: GFLUXI(:,:)
+    real(kind=kind_phys),allocatable:: SRUNOFF(:,:)
+    real(kind=kind_phys),allocatable:: T1(:,:)
+    real(kind=kind_phys),allocatable:: Q1(:,:)
+    real(kind=kind_phys),allocatable:: U1(:,:)
+    real(kind=kind_phys),allocatable:: V1(:,:)
+    real(kind=kind_phys),allocatable:: ZLVL(:,:)
+    real(kind=kind_phys),allocatable:: EVBSA(:,:)
+    real(kind=kind_phys),allocatable:: EVCWA(:,:)
+    real(kind=kind_phys),allocatable:: TRANSA(:,:)
+    real(kind=kind_phys),allocatable:: SBSNOA(:,:)
+    real(kind=kind_phys),allocatable:: SNOWCA(:,:)
+    real(kind=kind_phys),allocatable:: SOILM(:,:)
+    real(kind=kind_phys),allocatable:: SNOHFA(:,:)
+    real(kind=kind_phys),allocatable:: SMCWLT2(:,:)
+    real(kind=kind_phys),allocatable:: SMCREF2(:,:)
+    real(kind=kind_phys),allocatable:: suntim(:,:)       ! sunshine duration time
+    real(kind=kind_phys),allocatable:: sfcemis(:,:)      ! surface emissivity
 !hchuang code change [+8L] xx/xx/2007 : add 2D
-    real(kind=kind_phys),pointer:: gsoil(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: gtmp2m(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: gustar(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: gpblh(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: gu10m(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: gv10m(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: gzorl(:,:)=&gt;null()
-    real(kind=kind_phys),pointer:: goro(:,:)=&gt;null()
+    real(kind=kind_phys),allocatable:: gsoil(:,:)
+    real(kind=kind_phys),allocatable:: gtmp2m(:,:)
+    real(kind=kind_phys),allocatable:: gustar(:,:)
+    real(kind=kind_phys),allocatable:: gpblh(:,:)
+    real(kind=kind_phys),allocatable:: gu10m(:,:)
+    real(kind=kind_phys),allocatable:: gv10m(:,:)
+    real(kind=kind_phys),allocatable:: gzorl(:,:)
+    real(kind=kind_phys),allocatable:: goro(:,:)
  end type Flx_Var_Data
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     contains

</font>
</pre>