Skip to content

Commit

Permalink
Added platform for OSX_VENTURA
Browse files Browse the repository at this point in the history
  • Loading branch information
tema1992 committed Apr 13, 2024
1 parent 3131985 commit d7f579f
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
51 changes: 51 additions & 0 deletions platform/build/make.inc.OSX_VENTURA
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#---------------------------------------------------
# OSX Ventura
#
# macport installation instructions for new Mac
# running Sierra, assuming OMFIT being installed as
# well. YMMV.
#
# 1) install OMFIT via macports- gets initial
# dependencies
# 2) sudo port install mpich-gcc9
# 3) sudo port install netcdf-fortran
# 4) determine local host name via uname -n
# add following line to /etc/hosts
# 127.0.0.1 <local host name>
#
#---------------------------------------------------

# Compilers and flags

FC = mpif90-mpich-gcc11 -I$(GACODE_ROOT)/modules -J$(GACODE_ROOT)/modules -fPIC -framework Accelerate
F77 = mpif77 -std=legacy
CC = ${FC}

GOMPTEST := $(shell ${CC} -v 2>&1 | grep " version " | grep gcc >/dev/null; echo $$?)
ifeq ($(GOMPTEST),0)
FOMP =-fopenmp
endif

FMATH =-fdefault-real-8 -fdefault-double-8
FOPT =-O3
FDEBUG =-Wall -fcheck=all -ffpe-trap=invalid,zero,overflow -g -fbacktrace
F2PY = f2py

# System math libraries

LMATH = /opt/local/lib/libfftw3.a
FFTW_INC = /opt/local/include

ifdef FANN_ROOT
# neural net libraries
NN_LIB=-L$(GACODE_ROOT)/../neural/ -I$(GACODE_ROOT)/../neural/ -lbrainfuse -lfann
endif

# NetCDF libraries

NETCDF = -L/opt/local/lib -lnetcdff -L/opt/local/lib -Wl,-headerpad_max_install_names -lnetcdf -lnetcdf
NETCDF_INC = /opt/local/include

# Archive

ARCH = ar cr
13 changes: 13 additions & 0 deletions platform/exec/exec.OSX_VENTURA
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
# GACODE Parallel execution script (OSX_MOUNTAINLION)

simdir=${1}
nmpi=${2}
exec=${3}
nomp=${4}
numa=${5}
mpinuma=${6}

cd $simdir
mpirun -env OMP_NUM_THREADS $nomp -np $nmpi $exec

0 comments on commit d7f579f

Please sign in to comment.