Makefile 517 B

12345678910111213
  1. FC=mpif90
  2. FLAGS= -r8 -O3 -march=core-avx2 -ip -fp-model precise -extend-source 132
  3. NETCDF_INC_DIR = $(addsuffix /,/)$(EBROOTNETCDF)/include $(EBROOTNETCDFMINFORTRAN)/include
  4. NETCDF_LIB_DIR = $(addsuffix /,/)$(EBROOTNETCDF)/lib64 $(EBROOTNETCDFMINFORTRAN)/lib
  5. NETCDF_LIBS = $(addprefix -l,netcdff netcdf)
  6. all:
  7. mkdir -p bin
  8. $(FC) src/mpp_domain_decomposition.f90 -o bin/mpp_domain_decomposition.exe $(FLAGS) -I$(NETCDF_INC_DIR) -L$(NETCDF_LIB_DIR) $(NETCDF_LIBS)
  9. clean:
  10. rm -f bin/mpp_domain_decomposition.exe