Skip to content

Commit b2a272a

Browse files
author
Mariana Vertenstein
committed
removed all calls and files related to gptl for nems - since it never initializes gptl
1 parent 0bff3ec commit b2a272a

File tree

7 files changed

+21
-2468
lines changed

7 files changed

+21
-2468
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ else
3939
@echo "ESMF_DEP_FRONT = MED" >> cmeps.mk.install
4040
@echo "ESMF_DEP_INCPATH = $(INSTALLDIR)/include" >> cmeps.mk.install
4141
@echo "ESMF_DEP_CMPL_OBJS = " >> cmeps.mk.install
42-
@echo "ESMF_DEP_LINK_OBJS = $(INSTALLDIR)/libcmeps.a $(INSTALLDIR)/libcmeps_util.a $(INSTALLDIR)/libgptl.a $(INSTALLDIR)/libpiof.a $(INSTALLDIR)/libpioc.a $(INSTALLDIR)/libgptl.a $(PNETCDF_LD_OPTS)" >> cmeps.mk.install
42+
@echo "ESMF_DEP_LINK_OBJS = $(INSTALLDIR)/libcmeps.a $(INSTALLDIR)/libcmeps_util.a $(INSTALLDIR)/libpiof.a $(INSTALLDIR)/libpioc.a $(PNETCDF_LD_OPTS)" >> cmeps.mk.install
4343
mkdir -p $(INSTALLDIR)
4444
mkdir -p $(INSTALLDIR)/include
4545
cp -f $(PIO_INSTALL_DIR)/lib/*.a $(INSTALLDIR)

mediator/med_utils_mod.F90

+2
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ subroutine med_memcheck(string, level, mastertask)
2222
integer, intent(in) :: level
2323
logical, intent(in) :: mastertask
2424
integer :: ierr
25+
#ifndef INTERNAL_PIO_INIT
2526
integer, external :: GPTLprint_memusage
2627
if((mastertask .and. memdebug_level > level) .or. memdebug_level > level+1) then
2728
ierr = GPTLprint_memusage(string)
2829
endif
30+
#endif
2931
end subroutine med_memcheck
3032

3133
!===============================================================================

nems/util/Makefile

+1-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ LIBRARY = libcmeps_util.a
1212

1313
OBJ1= \
1414
perf_mod.o \
15-
perf_utils.o \
1615
shr_abort_mod.o \
1716
shr_const_mod.o \
1817
shr_flux_mod.o \
@@ -40,8 +39,7 @@ clean:
4039
$(RM) -f $(LIBRARY) *.f90 *.i90 *.o *.mod
4140
$(RM) -f med_constants_mod.*
4241

43-
perf_mod.o: perf_utils.o shr_sys_mod.o shr_kind_mod.o shr_mpi_mod.o gptl.inc
44-
perf_utils.o: gptl.inc
42+
perf_mod.o: shr_kind_mod.o
4543
shr_abort_mod.o: shr_kind_mod.o shr_mpi_mod.o shr_log_mod.o
4644
shr_const_mod.o: shr_kind_mod.o shr_const_mod.F90
4745
shr_flux_mod.o: shr_kind_mod.o shr_const_mod.o shr_sys_mod.o shr_log_mod.o

nems/util/gptl.inc

-188
This file was deleted.

0 commit comments

Comments
 (0)