Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions cms-master/src/updateloc.f90
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,18 @@ SUBROUTINE updateloc(lon_old,lat_old,depth_old,u,v,w,flag,tmstp,lon_new,lat_new,
dx=tmstp*u
dy=tmstp*v
ENDIF
IF (agrid .eqv. .false.) THEN
! IF (agrid .eqv. .false.) THEN ! no reason to link agrid and wvel_positive_direction
IF (wvel_positive_direction .eq. 'upward') THEN
dz=-1.0 * tmstp*w
ELSE
dz=tmstp*w
ENDIF
IF (velocity_conversion_factor .ne. 1) THEN
dz=dz*velocity_conversion_factor
ENDIF
ELSE
dz=tmstp*w
ENDIF
! ELSE
! dz=tmstp*w
! ENDIF

! convert into new lon/lat/depth positions and return these values
rln1=deg2rad*lon_old
Expand All @@ -88,4 +90,4 @@ SUBROUTINE updateloc(lon_old,lat_old,depth_old,u,v,w,flag,tmstp,lon_new,lat_new,
ENDIF
ENDIF
ENDIF
END SUBROUTINE updateloc
END SUBROUTINE updateloc