Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend Derived Variable Expressions: Multiplication, Division, Pow, Sqrt #4248

Merged
merged 17 commits into from
Aug 12, 2024

Conversation

lizdulac
Copy link
Collaborator

@lizdulac lizdulac commented Jul 18, 2024

For now, division needs to be called as "divide( ... )" since '/' character can be found in variable names, so "sim/Ux" could be a variable name or division operation.

All simple functions were merged into one test

Edit from Ana
Two things are left for @lizdulac

  1. The Pow derived variable returns pow(var, 2) and should work with any index value
  2. Divide should work when using \

source/adios2/toolkit/derived/Expression.cpp Outdated Show resolved Hide resolved
source/adios2/toolkit/derived/Function.cpp Outdated Show resolved Hide resolved
source/adios2/toolkit/derived/Function.cpp Outdated Show resolved Hide resolved
source/adios2/toolkit/derived/Function.cpp Show resolved Hide resolved
source/adios2/toolkit/derived/Function.cpp Show resolved Hide resolved
testing/adios2/derived/TestBPDerivedCorrectness.cpp Outdated Show resolved Hide resolved
testing/adios2/derived/TestBPDerivedCorrectness.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@anagainaru anagainaru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments are still left. I'll push changes to this today, don't merge before that.

source/adios2/toolkit/derived/Function.cpp Outdated Show resolved Hide resolved
source/adios2/toolkit/derived/Expression.cpp Show resolved Hide resolved
@anagainaru anagainaru force-pushed the extendExprs branch 2 times, most recently from 1a59b9a to 00b92c6 Compare August 10, 2024 17:00
Copy link
Contributor

@anagainaru anagainaru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My changes are done, this is ready to squash merge

source/adios2/toolkit/derived/Function.cpp Outdated Show resolved Hide resolved
@anagainaru anagainaru merged commit 902eca4 into ornladios:master Aug 12, 2024
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants