-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from LLNL/feature/flexible_python_targets
Feature/flexible python targets
- Loading branch information
Showing
55 changed files
with
268 additions
and
177 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
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
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,2 +1,2 @@ | ||
spheral_add_pybind11_library(ANEOS | ||
INCLUDES ${SPHERAL_ROOT_DIR}/src/Pybind11Wraps/ANEOS) | ||
spheral_add_pybind11_library(ANEOS SPHERAL_MODULE_LIST | ||
INCLUDES ${SPHERAL_ROOT_DIR}/src/Pybind11Wraps/ANEOS SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(ArtificialConduction) | ||
spheral_add_pybind11_library(ArtificialConduction SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(ArtificialViscosity) | ||
spheral_add_pybind11_library(ArtificialViscosity SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Boundary) | ||
spheral_add_pybind11_library(Boundary SPHERAL_MODULE_LIST) |
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 |
---|---|---|
@@ -1 +1 @@ | ||
spheral_add_pybind11_library(CRKSPH) | ||
spheral_add_pybind11_library(CRKSPH SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(CXXTests) | ||
spheral_add_pybind11_library(CXXTests SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(CXXTypes) | ||
spheral_add_pybind11_library(CXXTypes SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(DEM) | ||
spheral_add_pybind11_library(DEM SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Damage) | ||
spheral_add_pybind11_library(Damage SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(DataBase) | ||
spheral_add_pybind11_library(DataBase SPHERAL_MODULE_LIST) |
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,3 +1,3 @@ | ||
spheral_add_pybind11_library(DataOutput | ||
spheral_add_pybind11_library(DataOutput SPHERAL_MODULE_LIST | ||
SOURCES RestartableObject.cc | ||
INCLUDES ${SPHERAL_ROOT_DIR}/src/Pybind11Wraps/DataOutput) | ||
INCLUDES ${SPHERAL_ROOT_DIR}/src/Pybind11Wraps/DataOutput SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(DeviceTestLib) | ||
spheral_add_pybind11_library(DeviceTestLib SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Distributed) | ||
spheral_add_pybind11_library(Distributed SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(ExternalForce) | ||
spheral_add_pybind11_library(ExternalForce SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(FSISPH) | ||
spheral_add_pybind11_library(FSISPH SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Field) | ||
spheral_add_pybind11_library(Field SPHERAL_MODULE_LIST) |
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,62 @@ | ||
""" | ||
Spheral ArithmeticFieldList module. | ||
Provides the ArithmeticFieldList classes. | ||
""" | ||
|
||
from PYB11Generator import * | ||
from SpheralCommon import * | ||
from spheralDimensions import * | ||
dims = spheralDimensions() | ||
|
||
from ArithmeticFieldList import * | ||
from MinMaxFieldList import * | ||
|
||
#------------------------------------------------------------------------------- | ||
# Includes | ||
#------------------------------------------------------------------------------- | ||
PYB11includes += ['"Geometry/Dimension.hh"', | ||
'"Field/FieldBase.hh"', | ||
'"Field/Field.hh"', | ||
'"Field/FieldList.hh"', | ||
'"Field/FieldListSet.hh"', | ||
'"Utilities/FieldDataTypeTraits.hh"', | ||
'"Utilities/DomainNode.hh"', | ||
'"Geometry/CellFaceFlag.hh"', | ||
'<vector>'] | ||
|
||
#------------------------------------------------------------------------------- | ||
# Namespaces | ||
#------------------------------------------------------------------------------- | ||
PYB11namespaces = ["Spheral"] | ||
|
||
#------------------------------------------------------------------------------- | ||
# Do our dimension dependent instantiations. | ||
#------------------------------------------------------------------------------- | ||
for ndim in dims: | ||
|
||
#........................................................................... | ||
# arithmetic fields | ||
for (value, label) in (("int", "Int"), | ||
("unsigned", "Unsigned"), | ||
("uint64_t", "ULL"), | ||
("Dim<%i>::Vector" % ndim, "Vector"), | ||
("Dim<%i>::Tensor" % ndim, "Tensor"), | ||
("Dim<%i>::ThirdRankTensor" % ndim, "ThirdRankTensor"), | ||
("Dim<%i>::FourthRankTensor" % ndim, "FourthRankTensor"), | ||
("Dim<%i>::FifthRankTensor" % ndim, "FifthRankTensor")): | ||
exec(''' | ||
%(label)sFieldList%(ndim)sd = PYB11TemplateClass(ArithmeticFieldList, template_parameters=("Dim<%(ndim)i>", "%(value)s")) | ||
''' % {"ndim" : ndim, | ||
"value" : value, | ||
"label" : label}) | ||
|
||
#........................................................................... | ||
# A few fields can apply the min/max with a scalar additionally | ||
for (value, label) in (("double", "Scalar"), | ||
("Dim<%i>::SymTensor" % ndim, "SymTensor")): | ||
exec(''' | ||
%(label)sFieldList%(ndim)sd = PYB11TemplateClass(MinMaxFieldList, template_parameters=("Dim<%(ndim)i>", "%(value)s")) | ||
''' % {"ndim" : ndim, | ||
"value" : value, | ||
"label" : label}) |
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 +1,2 @@ | ||
spheral_add_pybind11_library(FieldList) | ||
spheral_add_pybind11_library(FieldList SPHERAL_MODULE_LIST) | ||
spheral_add_pybind11_library(ArithmeticFieldList SPHERAL_MODULE_LIST) |
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
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 +1 @@ | ||
spheral_add_pybind11_library(FieldOperations) | ||
spheral_add_pybind11_library(FieldOperations SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(FileIO) | ||
spheral_add_pybind11_library(FileIO SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(GSPH) | ||
spheral_add_pybind11_library(GSPH SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Geometry) | ||
spheral_add_pybind11_library(Geometry SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Gravity) | ||
spheral_add_pybind11_library(Gravity SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Helmholtz) | ||
spheral_add_pybind11_library(Helmholtz SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Hydro) | ||
spheral_add_pybind11_library(Hydro SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Integrator) | ||
spheral_add_pybind11_library(Integrator SPHERAL_MODULE_LIST) |
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 +1 @@ | ||
spheral_add_pybind11_library(Kernel) | ||
spheral_add_pybind11_library(Kernel SPHERAL_MODULE_LIST) |
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 +1,2 @@ | ||
spheral_add_pybind11_library(KernelIntegrator) | ||
spheral_add_pybind11_library(KernelIntegrator SPHERAL_MODULE_LIST) | ||
spheral_add_pybind11_library(IntegrationKernels SPHERAL_MODULE_LIST) |
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
Oops, something went wrong.