Skip to content

Commit

Permalink
Nullify diagnostic arrays. This is necessary because safe_alloc_ptr()
Browse files Browse the repository at this point in the history
checks whether or not an array is associated. e.g. if the array has not
been nullified safe_alloc_ptr() may not allocate it. Closes #149
  • Loading branch information
Nicholas Hannah committed May 4, 2015
1 parent 08367b4 commit 6c14478
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/MOM_barotropic.F90
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ module MOM_barotropic
real ALLOCABLE_, dimension(NIMEMBW_,NJMEMBW_) :: &
q_D ! f / D at PV points, in m-1 s-1.

real, pointer, dimension(:,:,:) :: frhatu1, frhatv1 ! Predictor values.
real, pointer, dimension(:,:,:) :: frhatu1 => NULL(), frhatv1 => NULL() ! Predictor values.

real :: Rho0 ! The density used in the Boussinesq
! approximation, in kg m-3.
Expand Down

0 comments on commit 6c14478

Please sign in to comment.