Skip to content

Commit

Permalink
LSF bug fixed and craycc warning removed
Browse files Browse the repository at this point in the history
  • Loading branch information
setsmdeveloper committed Mar 11, 2020
1 parent 7bfc645 commit 1b563d1
Show file tree
Hide file tree
Showing 3 changed files with 472 additions and 441 deletions.
29 changes: 19 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,27 @@

# If libtiff is installed in a nonstandard location you must edit
# TIFFPATH and uncomment the following three lines.
TIFFPATH=/home/noh.56/software/tiff-4.0.3/libtiff
TIFFINC=-I/home/noh.56/software/tiff-4.0.3/include
TIFFLIB=-L/home/noh.56/software/tiff-4.0.3/lib

TIFFPATH=/projects/sciteam/bazu/setsm/lib/tiff-4.0.3-cray
TIFFINC=-I$(TIFFPATH)/include
TIFFLIB=-L$(TIFFPATH)/lib

# If libgeotiff is installed in a nonstandard location you must edit
# GEOTIFFPATH and uncomment the following three lines.
GEOTIFFPATH=/home/noh.56/software/libgeotiff-1.4.2/libxtiff
GEOTIFFINC=-I/home/noh.56/software/libgeotiff-1.4.2/include
GEOTIFFLIB=-L/home/noh.56/software/libgeotiff-1.4.2/lib
GEOTIFFPATH=/projects/sciteam/bazu/setsm/lib/geotiff
GEOTIFFINC=-I$(GEOTIFFPATH)/include
GEOTIFFLIB=-L$(GEOTIFFPATH)/lib

PROJLIB=-L/projects/sciteam/bazu/setsm/lib/proj/lib

MPIFLAGS = -DBUILDMPI

INCS = $(TIFFINC) $(GEOTIFFINC)
LDFLAGS = $(TIFFLIB) $(GEOTIFFLIB)
LDFLAGS = $(TIFFLIB) $(GEOTIFFLIB) $(PROJLIB)

OBJS = setsmgeo.o grid.o grid_triangulation.o edge_list.o
HDRS = Typedefine.hpp setsm_code.hpp setsmgeo.hpp grid_triangulation.hpp grid_types.hpp grid_iterators.hpp basic_topology_types.hpp git_description.h


ifeq ($(COMPILER), intel)
CC=icc
CXX=icpc
Expand All @@ -37,6 +39,13 @@ else ifeq ($(COMPILER), pgi)
MPICXX=mpicxx
CFLAGS=-c99 -O3 -mp=allcores -fast
CXXFLAGS=-std=c++11 -O3 -mp=allcores -fast
else ifeq ($(COMPILER), cray)
CC=cc
CXX=CC
MPICC=mpicc
MPICXX=mpicxx
CFLAGS=
CXXFLAGS=-hstd=c++11
else
CC=gcc
CXX=g++
Expand All @@ -51,10 +60,10 @@ GIT_DESCRIPTION:=$(shell cat git_description)
export GIT_DESCRIPTION

setsm : setsm_code.o $(OBJS)
$(CXX) $(CXXFLAGS) -o setsm setsm_code.o $(OBJS) $(LDFLAGS) -lm -lgeotiff -ltiff
$(CXX) $(CXXFLAGS) -o setsm setsm_code.o $(OBJS) $(LDFLAGS) -lm -lgeotiff -ltiff -lz -ljpeg -lproj

setsm_mpi : setsm_code_mpi.o $(OBJS)
$(MPICXX) $(CXXFLAGS) $(MPIFLAGS) -o setsm_mpi setsm_code_mpi.o $(OBJS) $(LDFLAGS) -lm -lgeotiff -ltiff
$(MPICXX) $(CXXFLAGS) $(MPIFLAGS) -o setsm_mpi setsm_code_mpi.o $(OBJS) $(LDFLAGS) -lm -lgeotiff -ltiff -lz -ljpeg -lproj

setsm_code.o : setsm_code.cpp $(HDRS)
$(CXX) -c $(CXXFLAGS) $(INCS) setsm_code.cpp -o setsm_code.o
Expand Down
Loading

0 comments on commit 1b563d1

Please sign in to comment.