Skip to content

Commit

Permalink
Merge branch 'develop' into 55_debug_take2
Browse files Browse the repository at this point in the history
  • Loading branch information
jwallwork23 committed Nov 25, 2024
2 parents 48abc9d + 0869e2d commit 6eb86ef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions config/compiler.gfortran.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ CPPFLAGS += -DCOMPILER_G95
FFLAGS = -g -cpp -fconvert=big-endian -O2 -fno-range-check -fallow-argument-mismatch
F90FLAGS = $(FFLAGS) -ffree-line-length-none
LFLAGS =
ifeq ($(GC),YES)
LFLAGS += -nostartfiles -Wno-main
endif
ifeq ($(MP),YES)
FFLAGS += -fopenmp
F90FLAGS += -fopenmp
LFLAGS += -fopenmp
endif
CTM_LFLAGS = $(LFLAGS)
ifeq ($(GC),YES)
CTM_LFLAGS += -nostartfiles -Wno-main
endif

F90_VERSION = $(shell $(F90) --version | head -1)

Expand Down
7 changes: 4 additions & 3 deletions config/compiler.intel.mk
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ CMP_MOD = $(SCRIPTS_DIR)/compare_module_file.pl -compiler INTEL-ifort-9-0-on-LIN
FFLAGS = -fpp -O2 -ftz -convert big_endian
F90FLAGS = $(FFLAGS) -free
LFLAGS = -O2 -ftz
ifeq ($(GC),YES)
LFLAGS += -nostartfiles -nofor-main
endif
CPPFLAGS += -DCOMPILER_Intel8 -DCONVERT_BIGENDIAN
F90_VERSION = $(shell $(F90) --version 2>&1)
ifeq ($(MP),YES)
FFLAGS += -qopenmp
F90FLAGS += -qopenmp
LFLAGS += -qopenmp
endif
CTM_FLAGS = $(LFLAGS)
ifeq ($(GC),YES)
CTM_LFLAGS += -nostartfiles -nofor-main
endif
R8 = -r8
EXTENDED_SOURCE = -extend_source

Expand Down
2 changes: 1 addition & 1 deletion decks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ ifeq ($(GC),YES)
-DCMAKE_CXX_COMPILER="$(CXX)" \
-DCMAKE_Fortran_COMPILER="$(F90)" \
-DCMAKE_Fortran_FLAGS="$(F90FLAGS)" \
-DCMAKE_EXE_LINKER_FLAGS="$(LFLAGS)"
-DCMAKE_EXE_LINKER_FLAGS="$(CTM_LFLAGS)"
cd $(GC_BUILD_DIR) && make -j install
cp $(GC_BUILD_DIR)/mod/*.mod $(MODEL_DIR)/mod/
cp $(GC_BUILD_DIR)/src/HEMCO/mod/*.mod $(MODEL_DIR)/mod/
Expand Down

0 comments on commit 6eb86ef

Please sign in to comment.