Skip to content

Commit

Permalink
Merge branch 'draco-7_2_0' of github.com:lanl/Draco into draco-7_2_0
Browse files Browse the repository at this point in the history
  • Loading branch information
KineticTheory committed Jun 25, 2019
2 parents 5566425 + a6db606 commit a879a6d
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 36 deletions.
2 changes: 1 addition & 1 deletion regression/scripts/ats2-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case $ddir in
run "module purge"
module use /usr/gapps/jayenne/vendors-ec/spack.20190616/share/spack/lmod/linux-rhel7-ppc64le/Core
run "module load cuda python/3.7.2 gcc/7.3.1 spectrum-mpi/2019.04.19"
run "module load cmake/3.14.4 git gsl numdiff random123 metis netlib-lapack"
run "module load cmake/3.14.5 git gsl numdiff random123 metis netlib-lapack"
run "module load parmetis superlu-dist trilinos csk/0.4.2"
run "module load eospac/6.4.0"
# ndi
Expand Down
8 changes: 4 additions & 4 deletions regression/scripts/cray-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ case $ddir in
run "module unload cray-hugepages2M"
run "module load intel/18.0.2"
run "module load cmake/3.14.0 numdiff git"
run "module load gsl random123 eospac/6.4.0 ndi"
run "module load gsl random123 eospac/6.4.0 ndi python/3.6-anaconda-5.0.1"
run "module load trilinos/12.10.1 metis parmetis/4.0.3 superlu-dist"
run "module use --append ${VENDOR_DIR}-ec/modulefiles"
run "module load csk"
Expand Down Expand Up @@ -68,7 +68,7 @@ case $ddir in
run "module unload cray-hugepages2M"
run "module load intel/18.0.2"
run "module load cmake/3.14.0 numdiff git"
run "module load gsl random123 eospac/6.4.0 ndi"
run "module load gsl random123 eospac/6.4.0 ndi python/3.6-anaconda-5.0.1"
run "module load trilinos/12.10.1 metis parmetis/4.0.3 superlu-dist"
run "module use --append ${VENDOR_DIR}-ec/modulefiles"
run "module load csk"
Expand Down Expand Up @@ -103,7 +103,7 @@ case $ddir in
run "module unload xt-libsci xt-totalview"
run "module load intel/17.0.4"
run "module load cmake/3.14.0 numdiff git"
run "module load gsl random123 eospac/6.4.0 ndi"
run "module load gsl random123 eospac/6.4.0 ndi python/3.6-anaconda-5.0.1"
run "module load trilinos/12.10.1 metis parmetis/4.0.3 superlu-dist"
run "module use --append ${VENDOR_DIR}-ec/modulefiles"
run "module load csk"
Expand Down Expand Up @@ -135,7 +135,7 @@ case $ddir in
run "module unload xt-libsci xt-totalview"
run "module load intel/17.0.4"
run "module load cmake/3.14.0 numdiff git"
run "module load gsl random123 eospac/6.4.0 ndi"
run "module load gsl random123 eospac/6.4.0 ndi python/3.6-anaconda-5.0.1"
run "module load trilinos/12.10.1 metis parmetis/4.0.3 superlu-dist"
run "module use --append ${VENDOR_DIR}-ec/modulefiles"
run "module load csk"
Expand Down
14 changes: 5 additions & 9 deletions regression/scripts/release_ats2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ environments="gcc731env"

export script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export draco_script_dir=`readlink -f $script_dir`
source $draco_script_dir/common.sh
echo "source $draco_script_dir/common.sh"
source ${draco_script_dir}/common.sh

# CMake options that will be included in the configuration step
CONFIG_BASE="-DDRACO_VERSION_PATCH=`echo $ddir | sed -e 's/.*_//'`"
Expand Down Expand Up @@ -96,13 +97,7 @@ LOGGING_OFF="-DDRACO_DIAGNOSTICS=0 -DDRACO_TIMING=0"
# Define the meanings of the various code versions:

VERSIONS=( "debug" "opt" "rwdi" )
OPTIONS=(\
"$OPTIMIZE_OFF $LOGGING_OFF" \
"$OPTIMIZE_ON $LOGGING_OFF" \
"$OPTIMIZE_RWDI $LOGGING_OFF" \
)
#VERSIONS=( "debug")
#OPTIONS=( "$OPTIMIZE_OFF $LOGGING_OFF" )
OPTIONS=( "${OPTIMIZE_OFF} ${LOGGING_OFF}" "${OPTIMIZE_ON} ${LOGGING_OFF}" "${OPTIMIZE_RWDI} ${LOGGING_OFF}" )

##---------------------------------------------------------------------------##
## Environment review
Expand Down Expand Up @@ -130,7 +125,8 @@ fi
## Execute the build, test and install
##---------------------------------------------------------------------------##

source $draco_script_dir/ats2-env.sh
echo "source ${draco_script_dir}/ats2-env.sh"
source ${draco_script_dir}/ats2-env.sh

jobids=""
for env in $environments; do
Expand Down
21 changes: 0 additions & 21 deletions src/units/PhysicalConstants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,12 @@
//---------------------------------------------------------------------------//

#include "PhysicalConstants.hh"
#include "PhysicalConstantsSI.hh"
#include "ds++/Soft_Equivalence.hh"
#include <iomanip>
#include <iostream>

namespace rtt_units {

//----------------------------------------------------------------------------//
/*!
* \brief Default constructor provides physical constants with SI units (kg,
* m, seconds, degree K, amp, radian, mole).
* \return A PhysicalConstants object.
*/
PhysicalConstants::PhysicalConstants()
: d_avogadro(AVOGADRO), d_planck(planckSI), d_gasConstant(gasConstantSI),
d_boltzmann(boltzmannSI), d_electronCharge(electronChargeSI),
d_cLight(cLightSI), d_stefanBoltzmann(stefanBoltzmannSI),
d_gravitationalConstant(gravitationalConstantSI),
d_accelerationFromGravity(accelerationFromGravitySI),
d_faradayConstant(faradayConstantSI),
d_permeabilityOfVacuum(permeabilityOfVacuumSI),
d_permittivityOfFreeSpace(permittivityOfFreeSpaceSI),
d_classicalElectronRadius(classicalElectronRadiusSI),
d_electronMass(electronMassSI), d_protonMass(protonMassSI) {
// empty
}

//----------------------------------------------------------------------------//
/*!
* \brief Constuctor that creates a set of PhysicalConstants using the
Expand Down
21 changes: 20 additions & 1 deletion src/units/PhysicalConstants.hh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#define __units_PhysicalConstants_hh__

#include "MathConstants.hh"
#include "PhysicalConstantsSI.hh"
#include "UnitSystem.hh"

//! \namespace rtt_units Namespace for units and physical constants
Expand Down Expand Up @@ -48,7 +49,25 @@ namespace rtt_units {
class PhysicalConstants {
public:
// Constructors.
PhysicalConstants();
//----------------------------------------------------------------------------//
/*!
* \brief Default constructor provides physical constants with SI units (kg,
* m, seconds, degree K, amp, radian, mole).
* \return A PhysicalConstants object.
*/
constexpr PhysicalConstants()
: d_avogadro(AVOGADRO), d_planck(planckSI), d_gasConstant(gasConstantSI),
d_boltzmann(boltzmannSI), d_electronCharge(electronChargeSI),
d_cLight(cLightSI), d_stefanBoltzmann(stefanBoltzmannSI),
d_gravitationalConstant(gravitationalConstantSI),
d_accelerationFromGravity(accelerationFromGravitySI),
d_faradayConstant(faradayConstantSI),
d_permeabilityOfVacuum(permeabilityOfVacuumSI),
d_permittivityOfFreeSpace(permittivityOfFreeSpaceSI),
d_classicalElectronRadius(classicalElectronRadiusSI),
d_electronMass(electronMassSI), d_protonMass(protonMassSI) {
// empty
}
explicit PhysicalConstants(UnitSystem const &u);

//! \todo Make electronCharge and Avaragodo adjustable based on units.
Expand Down

0 comments on commit a879a6d

Please sign in to comment.