-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
122 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include expro/expro.f90 | ||
include expro/expro_util.f90 | ||
include expro/expro_pycomm.f90 | ||
include geo/geo.f90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,4 +31,4 @@ def gapystr_set(s, l=10, n=200): | |
__all__.extend(list(tmp.keys())) | ||
except: | ||
# Not using pygacode | ||
pass | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
[build-system] | ||
requires = ['setuptools','wheel','numpy'] | ||
requires = [ | ||
'setuptools>=41.2.0', 'wheel', | ||
'oldest-supported-numpy; python_version=="3.8"', | ||
'numpy>=2.0.2; python_version>="3.9"', | ||
'numpy>=2.1.3; python_version>="3.10"', | ||
'meson; python_version>="3.12"', | ||
] | ||
build-backend = 'setuptools.build_meta' | ||
|
||
[project] | ||
name = 'pygacode' | ||
version = '1.0.1' | ||
version = '1.0.2' | ||
description = 'Python-GACODE' | ||
license = {text = 'MIT'} | ||
requires-python = ">=3.8" | ||
|
||
[project.urls] | ||
Homepage = "https://gacode.io" | ||
|
||
license = { text = 'MIT' } | ||
requires-python = '>=3.8' | ||
urls = { Homepage = 'https://gacode.io' } | ||
dependencies = ['numpy'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#--------------------------------------------------- | ||
# OSX,gfortran+openmpi from Homebrew | ||
# | ||
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | ||
# brew install gcc open-mpi netcdf netcdf-fortran fftw | ||
#--------------------------------------------------- | ||
|
||
IDENTITY="OSX gfortran+openmpi from Homebrew" | ||
|
||
MAKE = make | ||
|
||
MF90 = mpif90 | ||
|
||
# Compilers and flags | ||
|
||
FC = ${MF90} -std=f2008 -fall-intrinsics -I$(FFTW_INC) -I$(GACODE_ROOT)/modules -J$(GACODE_ROOT)/modules -I/opt/local/include -fPIC | ||
F77 = ${MF90} -w -fallow-argument-mismatch | ||
|
||
FOMP = -fopenmp | ||
FMATH = -fdefault-real-8 -fdefault-double-8 | ||
FOPT = -O3 -m64 -framework Accelerate | ||
FDEBUG = -Wall -g -fcheck=all -fbacktrace -fbounds-check -O0 -Wextra -finit-real=nan -Wunderflow -ffpe-trap=invalid,zero,overflow | ||
#F2PY = f2py-2.7 | ||
|
||
# System libraries | ||
|
||
LMATH = -L$(BREW_LIB) -lfftw3 | ||
NETCDF = -L$(BREW_LIB) -lnetcdff -lnetcdf | ||
|
||
# Archive | ||
|
||
ARCH = ar cr | ||
|
||
ifdef FANN_ROOT | ||
# neural net libraries | ||
NN_LIB=-L$(GACODE_ROOT)/../neural/ -I$(GACODE_ROOT)/../neural/ -lbrainfuse -lfann | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
|
||
export BREW_LIB=$(brew --prefix)/lib | ||
export LD_LIBRARY_PATH=$(brew --prefix)/lib:$LD_LIBRARY_PATH | ||
export FFTW_INC=$(brew --prefix fftw)/include | ||
export NETCDF_INC=$(brew --prefix netcdf)/include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
# GACODE Parallel execution script (GFORTRAN_OSX_MACPORTS) | ||
# | ||
# NOTES: | ||
# Used mpich2-1.0.3, so use mpirun rather than mpiexec | ||
|
||
simdir=${1} | ||
nmpi=${2} | ||
exec=${3} | ||
nomp=${4} | ||
numa=${5} | ||
mpinuma=${6} | ||
|
||
echo $simdir | ||
|
||
cd $simdir | ||
export OMP_NUM_THREADS=$nomp ; mpiexec --oversubscribe -np $nmpi $exec |