-
Notifications
You must be signed in to change notification settings - Fork 140
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
IBFE ex7 tiny fix #180
IBFE ex7 tiny fix #180
Conversation
Can one of the admins verify this patch? |
2 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
Also want to point out that the PK1 stress function arguments keep switching between commits for all the IBFE examples (even in prior versions of main.cpp where tests were not yet set up) It changes between this void
upper_PK1_stress_function(
TensorValue<double>& PP,
const TensorValue<double>& FF,
const libMesh::Point& /*X*/,
const libMesh::Point& s,
Elem* const /*elem*/,
const vector<const vector<double>*>& /*var_data*/,
const vector<const vector<VectorValue<double> >*>& /*grad_var_data*/,
double /*time*/,
void* /*ctx*/) and void
upper_PK1_stress_function(
TensorValue<double>& PP,
const TensorValue<double>& FF,
const libMesh::Point& /*X*/,
const libMesh::Point& s,
Elem* const /*elem*/,
const vector<NumericVector<double>*>& /*system_data*/,
double /*time*/,
void* /*ctx*/) not sure if this is intentional and which one is 'recommended use' ... |
Yes there was a change, but the arguments should not be jumping back-and-forth. Let me know if this is not the case.
The new interface (with var_data and grad_var_data) is meant to make it easier to use additional field variables in evaluating these kinds of functions, by pre-evaluating the function value or gradient of the extra variable at the location where the stress is being evaluated.
The old interface (with system_data) just passed the full NumericVector to the stress function and left it up to the stress function to evaluate the field variable at the right place.
… On Dec 10, 2017, at 4:06 AM, Shashank Acharya ***@***.***> wrote:
Also want to point out that the PK1 stress function arguments keep switching between commits for all the IBFE examples (even in prior versions of main.cpp where tests were not yet set up)
It changes between this
void
upper_PK1_stress_function(
TensorValue<double>& PP,
const TensorValue<double>& FF,
const libMesh::Point& /*X*/,
const libMesh::Point& s,
Elem* const /*elem*/,
const vector<const vector<double>*>& /*var_data*/,
const vector<const vector<VectorValue<double> >*>& /*grad_var_data*/,
double /*time*/,
void* /*ctx*/)
and
void
upper_PK1_stress_function(
TensorValue<double>& PP,
const TensorValue<double>& FF,
const libMesh::Point& /*X*/,
const libMesh::Point& s,
Elem* const /*elem*/,
const vector<NumericVector<double>*>& /*system_data*/,
double /*time*/,
void* /*ctx*/)
not sure if this is intentional...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub <#180 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AEL8CTwiflP_mbab-ELupL76HT6P0lTFks5s-58ogaJpZM4Q8aqC>.
|
Oh, I understand now. Thanks for the detailed explanation. |
Jenkins check this please. |
ok to test |
Jenkins check this please. |
Hmmmm, it looks like the compiler is just crashing on the new VM... |
retest this please |
Hmmm, Jenkins is having trouble with this branch. I am going to go ahead and merge since it only touches the example code. |
Removed code that was previously enclosed in {{ #if 0, #endif }}
Example now compiles & runs successfully.