Skip to content

Commit 95ae91f

Browse files
Merge branch 'develop' into feature/craymod
Fixes ufs-community#787.
2 parents 28ca640 + 9432bda commit 95ae91f

File tree

4 files changed

+2
-169
lines changed

4 files changed

+2
-169
lines changed

sorc/fvcom_tools.fd/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
set(fortran_src
77
kinds.f90
88
module_ncio.f90
9-
module_nwp_base.f90
109
module_nwp.f90)
11-
# process_FVCOM.f90)
1210

1311
set(exe_src process_FVCOM.f90)
1412

sorc/fvcom_tools.fd/module_nwp.f90

+1-29
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@
1515
module module_nwp
1616

1717
use kinds, only: r_kind, r_single, i_short, rmissing
18-
use module_nwp_base, only: nwpbase
1918
! use module_map_utils, only: map_util
2019
use module_ncio, only: ncio
2120

2221
implicit none
2322

2423
public :: fcst_nwp
25-
public :: nwp_type
2624

2725
private
28-
type :: nwp_type
26+
type :: fcst_nwp
2927
character(len=6) :: datatype !< Data type.
3028
integer :: numvar !< Number of variabls.
3129
integer :: xlat !< Number of latitudes.
@@ -66,15 +64,6 @@ module module_nwp
6664
real(r_kind), allocatable :: nwp_zorl_w(:,:) !< warm start surface roughness
6765
real(r_kind), allocatable :: nwp_hice_w(:,:) !< warm start ice thickness
6866

69-
end type nwp_type
70-
71-
type, extends(nwp_type) :: fcst_nwp
72-
! The pointers are carryover from when I inherited the code from
73-
! GSL's work with HRRR for a similar use. I am not sure with
74-
! object based coding in Fortran if it needs to have parts
75-
! initialized to gain access to the procedures within it. - D. Wright.
76-
type(nwpbase), pointer :: head => NULL() !< Pointer to head of list.
77-
type(nwpbase), pointer :: tail => NULL() !< Pointer to tail of list.
7867
contains
7968
procedure :: initial => initial_nwp !< Defines vars and names. @return
8069
procedure :: list_initial => list_initial_nwp !< List the setup. @return
@@ -212,9 +201,6 @@ subroutine initial_nwp(this,itype,wcstart)
212201
stop 1234
213202
end if
214203

215-
this%head => NULL()
216-
this%tail => NULL()
217-
218204
write(6,*) 'Finished initial_nwp'
219205
write(6,*) ' '
220206

@@ -442,8 +428,6 @@ subroutine finish_nwp(this,itype,wcstart)
442428
character(len=6), intent(in) :: itype
443429
character(len=4), intent(in) :: wcstart
444430

445-
type(nwpbase), pointer :: thisobs,thisobsnext
446-
447431
deallocate(this%varnames)
448432
deallocate(this%latname)
449433
deallocate(this%lonname)
@@ -472,18 +456,6 @@ subroutine finish_nwp(this,itype,wcstart)
472456
write(6,*) 'no deallocation'
473457
end if
474458

475-
thisobs => this%head
476-
if(.NOT.associated(thisobs)) then
477-
write(6,*) 'No memory to release'
478-
return
479-
endif
480-
do while(associated(thisobs))
481-
482-
thisobsnext => thisobs%next
483-
call thisobs%destroy()
484-
thisobs => thisobsnext
485-
enddo
486-
487459
write(6,*) 'Finished finish_nwp'
488460
write(6,*) ' '
489461

sorc/fvcom_tools.fd/module_nwp_base.f90

-135
This file was deleted.

tests/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ function(PULL_DATA THE_URL THE_FILE)
3333
endif()
3434
endfunction()
3535

36-
# Add the test subdirecotries.
37-
# fvcom test only works for Intel. Comment out for now.
38-
#add_subdirectory(fvcom_tools)
36+
add_subdirectory(fvcom_tools)
3937
add_subdirectory(filter_topo)
4038
add_subdirectory(chgres_cube)
4139
add_subdirectory(fre-nctools)

0 commit comments

Comments
 (0)