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

postprocess.cc variables need dependence on equations.cc variables #174

Open
david-montiel-t opened this issue Jan 20, 2021 · 1 comment

Comments

@david-montiel-t
Copy link
Contributor

When the the post-processing variables are declared there needs to be a dependence of at least one of the field variables declared on equations.cc. This is the case even if the post-process variable does not use any of the "equations" variables. Otherwise, the resulting output of the post-processing variable will be zero.

For example the following declaration will always give zero values of the variable "ppv1":

// Variable 1
set_variable_name				(1,"ppv1");
set_variable_type				(1,SCALAR);

set_dependencies_value_term_RHS(1, "");
set_dependencies_gradient_term_RHS(1, "");

set_output_integral         	(1,false);
@landinjm
Copy link
Contributor

landinjm commented May 7, 2024

This is also the case in equations.cc. If no dependency is specified (e.g., if your RHS term was some function of the q point locations), the term is zero by default.

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

No branches or pull requests

2 participants