-
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 #73 from LLNL/feature/timer-fixes
Feature/timer fixes
- Loading branch information
Showing
25 changed files
with
166 additions
and
121 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,25 @@ | ||
#!/usr/bin/env bash | ||
|
||
SCRIPT_PATH=${0%/*} | ||
. "$SCRIPT_PATH/utils/parse-args.sh" | ||
|
||
# Inherit build directory name from script name | ||
BUILD_SUFFIX="lc_$(TMP=${BASH_SOURCE##*/}; echo ${TMP%.*})" | ||
|
||
rm -rf ${BUILD_SUFFIX} 2>/dev/null | ||
mkdir -p ${BUILD_SUFFIX}/install | ||
mkdir -p ${BUILD_SUFFIX}/build && cd ${BUILD_SUFFIX}/build | ||
|
||
module load cmake/3.14.5 | ||
module load gcc/8.1.0 | ||
|
||
cmake \ | ||
${SRC_DIR} \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_CXX_COMPILER=/usr/tce/packages/gcc/gcc-8.1.0/bin/g++ \ | ||
-C ${HOST_CONFIGS_DIR}/lc-builds/toss3/gcc8.1.0_tpl.cmake \ | ||
-DENABLE_OPENMP=On \ | ||
-DENABLE_MPI=On \ | ||
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \ | ||
-DENABLE_STATIC_CXXONLY=On \ | ||
$CMAKE_ARGS \ |
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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,15 @@ | ||
#------------------------------------------------------------------------------- | ||
# DamageGradientNodeCoupling | ||
#------------------------------------------------------------------------------- | ||
from PYB11Generator import * | ||
import NodeCoupling | ||
|
||
@PYB11template("Dimension") | ||
class DamageGradientNodeCoupling(NodeCoupling.NodeCoupling): | ||
"""A functor class encapsulating how we couple solid nodes in the presence of | ||
multiple materials and damage. | ||
This one attempts to mock up the shielding effect of ThreePointDamagedNodeCoupling | ||
by using local damage gradient to estimate when nodes are separated by | ||
regions of greater damage (or fractures).""" | ||
|
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,25 @@ | ||
#------------------------------------------------------------------------------- | ||
# PairMaxDamageNodeCoupling | ||
#------------------------------------------------------------------------------- | ||
from PYB11Generator import * | ||
import NodeCoupling | ||
|
||
@PYB11template("Dimension") | ||
class PairMaxDamageNodeCoupling(NodeCoupling.NodeCoupling): | ||
"""A functor class encapsulating how we couple solid nodes in the presence of | ||
multiple materials and damage. | ||
This form simply directly damages each pair based on their mutual damage.""" | ||
|
||
PYB11typedefs = """ | ||
typedef typename %(Dimension)s::Scalar Scalar; | ||
typedef typename %(Dimension)s::Vector Vector; | ||
typedef typename %(Dimension)s::Tensor Tensor; | ||
typedef typename %(Dimension)s::SymTensor SymTensor; | ||
""" | ||
|
||
def pyinit(self, | ||
state = "const State<%(Dimension)s>&", | ||
pairs = "NodePairList&"): | ||
"Constructor" | ||
|
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,26 @@ | ||
#------------------------------------------------------------------------------- | ||
# ThreePointDamagedNodeCoupling | ||
#------------------------------------------------------------------------------- | ||
from PYB11Generator import * | ||
import NodeCoupling | ||
|
||
@PYB11template("Dimension") | ||
class ThreePointDamagedNodeCoupling(NodeCoupling.NodeCoupling): | ||
"""A functor class encapsulating how we couple solid nodes in the presence of | ||
multiple materials and damage. | ||
This for uses the "three point" formalism, which allows damaged points to | ||
cut communication between pairs that talk across them.""" | ||
|
||
PYB11typedefs = """ | ||
typedef typename %(Dimension)s::Scalar Scalar; | ||
typedef typename %(Dimension)s::Vector Vector; | ||
typedef typename %(Dimension)s::Tensor Tensor; | ||
typedef typename %(Dimension)s::SymTensor SymTensor; | ||
""" | ||
|
||
def pyinit(self, | ||
state = "const State<%(Dimension)s>&", | ||
W = "const TableKernel<%(Dimension)s>&", | ||
pairs = "NodePairList&"): | ||
"Constructor" |
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
Oops, something went wrong.