Tribol
Tribol copied to clipboard
Update types in Tribol
This PR introduces new definitions for types in Tribol. The changes are as follows:
- Remove
tribol::integer
in favor ofint
, or other C++ fundamental types as dictated by the specific variable (e.g.unsigned short
might make more sense for a variable that represents spatial dimension) - Define
tribol::IndexT
asaxom::IndexType
for indexing into axom types (e.g.axom::Array
). Note the use oftribol::IndexT
still needs to be checked in source files. This will be done in future PRs. - Rename
tribol::real
astribol::RealT
and ensure proper usage throughout source files.tribol::RealT
is defined as adouble
; if the user attempts to map it tofloat
by definingTRIBOL_USE_SINGLE_PRECISION
, an error will occur since Tribol has not been tested with single precision. - Rename
tribol::containerArray
astribol::ArrayT
and define it as anaxom::Array
(with template arguments) instead ofstd::vector
- Rename
tribol::CommType
totribol::CommT
to be consistent with other Tribol type names
Note, this PR does not address types in redecomp or in the Fortran/C interface.