forked from ornladios/ADIOS2
-
Notifications
You must be signed in to change notification settings - Fork 0
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 ornladios#4207 from anagainaru/hide-symbols
Limit the exposed symbols related to derived variables
- Loading branch information
Showing
9 changed files
with
85 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef ADIOS2_DERIVED_Data_H_ | ||
#define ADIOS2_DERIVED_Data_H_ | ||
|
||
#include "adios2/common/ADIOSTypes.h" | ||
|
||
namespace adios2 | ||
{ | ||
namespace derived | ||
{ | ||
struct DerivedData | ||
{ | ||
void *Data; | ||
Dims Start; | ||
Dims Count; | ||
}; | ||
} | ||
} | ||
#endif |
This file was deleted.
Oops, something went wrong.
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,45 +1,18 @@ | ||
#ifndef ADIOS2_DERIVED_Function_H_ | ||
#define ADIOS2_DERIVED_Function_H_ | ||
|
||
#include "ExprHelper.h" | ||
#include "adios2/common/ADIOSTypes.h" | ||
#include "adios2/helper/adiosLog.h" | ||
#include <functional> | ||
#include "DerivedData.h" | ||
|
||
namespace adios2 | ||
{ | ||
namespace derived | ||
{ | ||
|
||
struct DerivedData | ||
{ | ||
void *Data; | ||
Dims Start; | ||
Dims Count; | ||
}; | ||
|
||
struct OperatorFunctions | ||
{ | ||
std::function<DerivedData(std::vector<DerivedData>, DataType)> ComputeFct; | ||
std::function<Dims(std::vector<Dims>)> DimsFct; | ||
}; | ||
|
||
DerivedData AddFunc(std::vector<DerivedData> input, DataType type); | ||
DerivedData MagnitudeFunc(std::vector<DerivedData> input, DataType type); | ||
DerivedData Curl3DFunc(std::vector<DerivedData> input, DataType type); | ||
|
||
Dims SameDimsFunc(std::vector<Dims> input); | ||
Dims CurlDimsFunc(std::vector<Dims> input); | ||
|
||
extern std::map<adios2::detail::ExpressionOperator, OperatorFunctions> OpFunctions; | ||
|
||
template <class T> | ||
T *ApplyOneToOne(std::vector<DerivedData> inputData, size_t dataSize, | ||
std::function<T(T, T)> compFct); | ||
|
||
template <class T> | ||
T *ApplyCurl(const T *input1, const T *input2, const T *input3, const size_t dims[3]); | ||
|
||
} | ||
} | ||
#endif |
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