Skip to content

Commit

Permalink
Patch for when both xrootd and derived variables are activated (ornla…
Browse files Browse the repository at this point in the history
…dios#4200)

Co-authored-by: Greg Eisenhauer <eisen@cc.gatech.edu>
  • Loading branch information
2 people authored and guj committed Jun 18, 2024
1 parent a134f53 commit 8371475
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 4 additions & 0 deletions source/adios2/toolkit/derived/Function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ namespace adios2
{
namespace derived
{
std::map<adios2::detail::ExpressionOperator, OperatorFunctions> OpFunctions = {
{adios2::detail::ExpressionOperator::OP_ADD, {AddFunc, SameDimsFunc}},
{adios2::detail::ExpressionOperator::OP_CURL, {Curl3DFunc, CurlDimsFunc}},
{adios2::detail::ExpressionOperator::OP_MAGN, {MagnitudeFunc, SameDimsFunc}}};

DerivedData AddFunc(std::vector<DerivedData> inputData, DataType type)
{
Expand Down
5 changes: 1 addition & 4 deletions source/adios2/toolkit/derived/Function.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ DerivedData Curl3DFunc(std::vector<DerivedData> input, DataType type);
Dims SameDimsFunc(std::vector<Dims> input);
Dims CurlDimsFunc(std::vector<Dims> input);

const std::map<adios2::detail::ExpressionOperator, OperatorFunctions> OpFunctions = {
{adios2::detail::ExpressionOperator::OP_ADD, {AddFunc, SameDimsFunc}},
{adios2::detail::ExpressionOperator::OP_CURL, {Curl3DFunc, CurlDimsFunc}},
{adios2::detail::ExpressionOperator::OP_MAGN, {MagnitudeFunc, SameDimsFunc}}};
extern std::map<adios2::detail::ExpressionOperator, OperatorFunctions> OpFunctions;

template <class T>
T *ApplyOneToOne(std::vector<DerivedData> inputData, size_t dataSize,
Expand Down

0 comments on commit 8371475

Please sign in to comment.