-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Defining and computing derived variables (#3816)
* Grammar related functions to parse derived variables * Add the option to define derived variables kept in the IO object * Update BP5 to be able to deal with derived variables Co-authored-by: Greg Eisenhauer <[email protected]> * Testing for correctness of derived variables using add and magnitude Co-authored-by: lizdulac <[email protected]> --------- Co-authored-by: lizdulac <[email protected]> Co-authored-by: Greg Eisenhauer <[email protected]>
- Loading branch information
1 parent
19846e9
commit f691092
Showing
37 changed files
with
6,266 additions
and
39 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
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,8 @@ | ||
#include "VariableDerived.h" | ||
|
||
#include "adios2/core/VariableDerived.h" | ||
|
||
namespace adios2 | ||
{ | ||
VariableDerived::VariableDerived(core::VariableDerived *variable) : m_VariableDerived(variable) {} | ||
} // end namespace adios2 |
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,43 @@ | ||
#ifndef ADIOS2_BINDINGS_CXX11_VARIABLE_DERIVED_H_ | ||
#define ADIOS2_BINDINGS_CXX11_VARIABLE_DERIVED_H_ | ||
|
||
#include "Operator.h" | ||
#include "adios2/common/ADIOSTypes.h" | ||
|
||
namespace adios2 | ||
{ | ||
|
||
/// \cond EXCLUDE_FROM_DOXYGEN | ||
// forward declare | ||
class IO; // friend | ||
namespace core | ||
{ | ||
|
||
class VariableDerived; // private implementation | ||
} | ||
/// \endcond | ||
|
||
class VariableDerived | ||
{ | ||
friend class IO; | ||
|
||
public: | ||
/** | ||
* Empty (default) constructor, use it as a placeholder for future | ||
* variables from IO:DefineVariableDerived<T> or IO:InquireVariableDerived<T>. | ||
* Can be used with STL containers. | ||
*/ | ||
VariableDerived() = default; | ||
|
||
/** Default, using RAII STL containers */ | ||
~VariableDerived() = default; | ||
|
||
private: | ||
core::VariableDerived *m_VariableDerived = nullptr; | ||
|
||
VariableDerived(core::VariableDerived *variable); | ||
}; | ||
|
||
} // end namespace adios2 | ||
|
||
#endif // ADIOS2_BINDINGS_CXX11_VARIABLE_DERIVED_H_ |
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
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.