Closed owainkenwayucl closed 5 years ago
I've filled out the form but I'm awaiting an email to let me download this (despite it being GPL).
I've been sent a link. I have to think about how we present this to users as part of the process of running the code is compiling a binary with your problem linked in (similar to things like CESM). It might be sensible to have the example problems built, the prerequisites and the makefile available to users.
Currently doing HDF5.
Since the user has reported issues with OpenMPI 3.0.0 I'm going to build all this stuff with 3.1.1.
Currently there's something wonky going on when AstroBEAR's build process uses the C preprocessor to generate F90 files and I've not worked out what yet.
Right. I've re-fixed the C preprocessor stuff and worked out that AstroBEAR really wants HDF 5 1.8.x, not 1.10.x.
I've successfully built it in ccspapp's home dir on myriad. I now need to work out how we present this to the users.
Makefile.inc.ucl:
FC = mpif90
CC = mpicc
CPP = cpp -P -E -w
OMP_FC=mpif90
OMP_CC=mpicc
OMP_FLAGS = -qopenmp
DEBUG_FFLAGS += -g -traceback -check uninit,pointers,bounds
FFLAGS += -g -O3 -align all -pad
CPPFLAGS += -g -D_MPI
LFLAGS += -lifcore
HDF5PATH = /shared/ucl/apps/HDF/5-1.8.15-Intel_2015
HYPREPATH = $(HYPRE_DIR)
FFTW3PATH = $(MKLROOT)
PGPLOTPATH = $(PGPLOT_DIR)
INCLUDE =
ifdef HDF5PATH
CPPFLAGS += -D_HDF5
LFLAGS += -L$(HDF5PATH)/lib -lhdf5_fortran -lhdf5
INCLUDE += -I$(HDF5PATH)/include
endif
ifdef HYPREPATH
CPPFLAGS += -D_HYPRE
LFLAGS += -L$(HYPREPATH)/lib -lHYPRE
INCLUDE += -I$(HYPREPATH)/include
endif
ifdef FFTW3PATH
CPPFLAGS += -D_FFTW3
LFLAGS += -mkl
INCLUDE += -I$(FFTW3PATH)/include/fftw
endif
ifdef PGPLOTPATH
LFLAGS += -L$(PGPLOTPATH) -lpgplot
endif
Loaded modules:
rcps-core/1.0.0 compilers/intel/2018/update3 mpi/openmpi/3.1.1/intel-2018 pgplot/5.2.2/intel-2018 hypre/2.11.2/openmpi-3.1.1/intel-2018 hdf/5-1.8.15/intel-2015-update2
I think this can't really be provided centrally in its current form, but we can give users our Makefile from the repo.
I am helping a user with a ticket and they mentioned that other people in their group would also use this so I'll do a central install.
It's GPL.
https://astrobear.pas.rochester.edu/trac/