Skip to content

Commit

Permalink
Updating platform file for PPPL Portal cluster w/ gcc compiler. modul…
Browse files Browse the repository at this point in the history
…e env used: gcc/11.2.0, openmpi/4.1.2, fftw/3.3.10. Also compiled Openblas before gacode compilation. This commit does not yet compile CGYRO.
  • Loading branch information
jfparisi committed Apr 23, 2024
1 parent 15b33f0 commit 283b3a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions neo/src/Makefile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ ifdef CUDA_DIR
NEO_FLAGS += -DNEO_HAVE_CUDA $(CUDA_INC)
NEO_LIBS += $(CUDA_LIB)
endif
ifdef PETSC_DIR
OBJECTS += neo_petsc.o
NEO_FLAGS += -DNEO_HAVE_PETSC $(PETSC_INC)
NEO_LIBS += $(PETSC_LIB)
endif
#ifdef PETSC_DIR
# OBJECTS += neo_petsc.o
# NEO_FLAGS += -DNEO_HAVE_PETSC $(PETSC_INC)
# NEO_LIBS += $(PETSC_LIB)
#endif
ifdef SUPERLU_DIR
OBJECTS += neo_superlu.o st_to_cc.o c_fortran_dgssv.o
NEO_FLAGS += -DNEO_HAVE_SUPERLU $(SUPERLU_INC)
Expand Down
7 changes: 4 additions & 3 deletions platform/build/make.inc.PPPL_gcc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ NUMAS_PER_NODE=1

# Compilers and flags

FC = mpif90 -std=f2008 -fall-intrinsics -I$(GACODE_ROOT)/modules -J $(GACODE_ROOT)/modules -fPIC
F77 = mpif77 -I$(GACODE_ROOT)/modules
FC = mpif90 -std=f2008 -fall-intrinsics -I$(GACODE_ROOT)/modules -J$(GACODE_ROOT)/modules -fPIC #-rpath=$(GACODE_ROOT)/modules
F77 = mpif77 -std=legacy -I$(GACODE_ROOT)/modules
CC = gcc

FMATH = -fdefault-real-8 -fdefault-double-8
Expand All @@ -21,7 +21,8 @@ F2PY = f2py
FOMP = -fopenmp

# System math libraries
LMATH = -L$(LAPACKHOME)/lib64 -llapack -lblas -L$(FFTW_HOME)/lib -lfftw3_threads -lfftw3
#LMATH = -L$(LAPACKHOME)/lib64 -llapack -lblas -L$(FFTW_HOME)/lib -lfftw3_threads -lfftw3
LMATH = /u/jparisi/OpenBLAS/libopenblas.a $(FFTW_HOME)/lib/libfftw3.a $(FFTW_HOME)/lib/libfftw3_omp.a
FFTW_INC = $(FFTW_HOME)/include

# NetCDF
Expand Down

0 comments on commit 283b3a6

Please sign in to comment.