Skip to content

Commit

Permalink
DOS Linux diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
TCallaghan2 committed Aug 1, 2024
1 parent 644b300 commit 459f227
Show file tree
Hide file tree
Showing 15 changed files with 88 additions and 88 deletions.
Empty file modified Grids/GBsquares.csv
100755 → 100644
Empty file.
Empty file modified Grids/GBxyzLatLon.csv
100755 → 100644
Empty file.
Empty file modified Grids/MAsquares.csv
100755 → 100644
Empty file.
Empty file modified Grids/MAxyzLatLon.csv
100755 → 100644
Empty file.
Empty file modified Grids/ManagementAreaGB.txt
100755 → 100644
Empty file.
Empty file modified Grids/ManagementAreaMA.txt
100755 → 100644
Empty file.
Empty file modified Grids/NodeRegionIndGB.txt
100755 → 100644
Empty file.
Empty file modified Grids/NodeRegionIndMA.txt
100755 → 100644
Empty file.
Empty file modified PythonScripts/EstimateRecruitFields.py
100755 → 100644
Empty file.
Empty file modified PythonScripts/EstimateRecruitFieldsClim.py
100755 → 100644
Empty file.
Empty file modified PythonScripts/EstimateRecruitFieldsHabcam.py
100755 → 100644
Empty file.
Empty file modified PythonScripts/EstimateRecruitFieldsLinear.py
100755 → 100644
Empty file.
Empty file modified PythonScripts/EstimateRecruitFieldsWAnom.py
100755 → 100644
Empty file.
Empty file modified PythonScripts/RunScallopDy.py
100755 → 100644
Empty file.
176 changes: 88 additions & 88 deletions SRC/makefile
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
#***********************************************************************
# Usage
# First time, this will create directories for intermediate output
# > make setup
#
# Create exec
# > make
#
# To cleanup for a fresh compilation
# > make clean
#***********************************************************************
#
# define executable and sourcecode macros
#
OBJ_DIR = ./obj
MOD_DIR = ./mod
FC = gfortran
#-fno-autom
#atic -fcheck=all -fcheck-array-temporaries -Wall
#-fno-automatic
# -fcheck=all -fcheck-array-temporaries-fno-automatic -fmax-stack-var-size=100000
#FFLAGS = -O3 -mcmodel=medium -funroll-all-loops -ffast-math -msse -msse2 -m3dnow -m64
FFLAGS = -g -Wall -std=f95 -fall-intrinsics
SRC_DIRS = .

# Find all the f90 files we want to compile
# Need to compile MOD files first and in particular order
SRCS = Globals.f90 GridManager.f90 ScallopMortality.f90 ScallopRecruit.f90 ScallopGrowth.f90
#SRCS += $(shell find $(SRC_DIRS) -name '*.f90' | grep -v 'Globals\|DataPoint\|ScallopGrowth\|ScallopRecruit')
SRCS += ScallopPopDensity.f90 IORoutines.f90

#LINUX, WIN?
#LIBS = -L/usr/lib/x86_64-linux-gnu -llapack -lblas
#MAC
#LIBS = -L/usr/lib -llapack -lblas
LIBS =

EXEC = ScallopPopDensity

OBJ = $(SRCS:%=$(OBJ_DIR)/%.o)
OBJS = $(OBJ:.f90.o=.o)
#
# create executable
#
# The final build step.
$(EXEC): $(OBJS)
$(FC) $(FFLAGS) $(LIBS) -I $(MOD_DIR) $(OBJS) -o $(EXEC)

# Build step for f90 source
$(OBJ_DIR)/%.o: %.f90
$(FC) $(FFLAGS) -c $< -o $@ -J $(MOD_DIR)
#***********************************************************************
#***********************************************************************
clean:
ifeq ($(OS), Windows_NT)
del $(EXEC).exe
del .\obj\*.o
del .\mod\*.mod
else
rm -fr $(EXEC)
rm -fr $(OBJ_DIR)/*.o
rm -fr $(MOD_DIR)/*.mod
endif

setup:
ifeq ($(OS), Windows_NT)
ifeq ("$(wildcard .\obj)", "")
mkdir .\obj
endif
ifeq ("$(wildcard .\mod)", "")
mkdir .\mod
endif
# Make directories needed for ScallopPopDensity executuion
ifeq ("$(wildcard ..\GrowthOutput)", "")
mkdir ..\GrowthOutput
endif
ifeq ("$(wildcard ..\Results)", "")
mkdir ..\Results
endif
ifeq ("$(wildcard ..\RecruitField)", "")
mkdir ..\RecruitField
endif
else
if [ ! -d "$(OBJ_DIR)" ]; then mkdir $(OBJ_DIR); fi
if [ ! -d "$(MOD_DIR)" ]; then mkdir $(MOD_DIR); fi
cd ..; if [ ! -d "GrowthOutput" ]; then mkdir 'GrowthOutput'; fi
cd ..; if [ ! -d "Results" ]; then mkdir 'Results'; fi
cd ..; if [ ! -d "RecruitField" ]; then mkdir 'RecruitField'; fi
#***********************************************************************
# Usage
# First time, this will create directories for intermediate output
# > make setup
#
# Create exec
# > make
#
# To cleanup for a fresh compilation
# > make clean
#***********************************************************************
#
# define executable and sourcecode macros
#
OBJ_DIR = ./obj
MOD_DIR = ./mod
FC = gfortran
#-fno-autom
#atic -fcheck=all -fcheck-array-temporaries -Wall
#-fno-automatic
# -fcheck=all -fcheck-array-temporaries-fno-automatic -fmax-stack-var-size=100000
#FFLAGS = -O3 -mcmodel=medium -funroll-all-loops -ffast-math -msse -msse2 -m3dnow -m64
FFLAGS = -g -Wall -std=f95 -fall-intrinsics
SRC_DIRS = .

# Find all the f90 files we want to compile
# Need to compile MOD files first and in particular order
SRCS = Globals.f90 GridManager.f90 ScallopMortality.f90 ScallopRecruit.f90 ScallopGrowth.f90
#SRCS += $(shell find $(SRC_DIRS) -name '*.f90' | grep -v 'Globals\|DataPoint\|ScallopGrowth\|ScallopRecruit')
SRCS += ScallopPopDensity.f90 IORoutines.f90

#LINUX, WIN?
#LIBS = -L/usr/lib/x86_64-linux-gnu -llapack -lblas
#MAC
#LIBS = -L/usr/lib -llapack -lblas
LIBS =

EXEC = ScallopPopDensity

OBJ = $(SRCS:%=$(OBJ_DIR)/%.o)
OBJS = $(OBJ:.f90.o=.o)
#
# create executable
#
# The final build step.
$(EXEC): $(OBJS)
$(FC) $(FFLAGS) $(LIBS) -I $(MOD_DIR) $(OBJS) -o $(EXEC)

# Build step for f90 source
$(OBJ_DIR)/%.o: %.f90
$(FC) $(FFLAGS) -c $< -o $@ -J $(MOD_DIR)
#***********************************************************************
#***********************************************************************
clean:
ifeq ($(OS), Windows_NT)
del $(EXEC).exe
del .\obj\*.o
del .\mod\*.mod
else
rm -fr $(EXEC)
rm -fr $(OBJ_DIR)/*.o
rm -fr $(MOD_DIR)/*.mod
endif

setup:
ifeq ($(OS), Windows_NT)
ifeq ("$(wildcard .\obj)", "")
mkdir .\obj
endif
ifeq ("$(wildcard .\mod)", "")
mkdir .\mod
endif
# Make directories needed for ScallopPopDensity executuion
ifeq ("$(wildcard ..\GrowthOutput)", "")
mkdir ..\GrowthOutput
endif
ifeq ("$(wildcard ..\Results)", "")
mkdir ..\Results
endif
ifeq ("$(wildcard ..\RecruitField)", "")
mkdir ..\RecruitField
endif
else
if [ ! -d "$(OBJ_DIR)" ]; then mkdir $(OBJ_DIR); fi
if [ ! -d "$(MOD_DIR)" ]; then mkdir $(MOD_DIR); fi
cd ..; if [ ! -d "GrowthOutput" ]; then mkdir 'GrowthOutput'; fi
cd ..; if [ ! -d "Results" ]; then mkdir 'Results'; fi
cd ..; if [ ! -d "RecruitField" ]; then mkdir 'RecruitField'; fi
endif

0 comments on commit 459f227

Please sign in to comment.