aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-07-23 10:28:30 +0200
committerAnton Khirnov <anton@khirnov.net>2021-07-23 10:28:30 +0200
commit8ad50ae962fea404c4ea7d74b59a51e25400c249 (patch)
tree9fd2daced6f86d1fc14afbdea8c83fe7463a947c
parentd9b861b455da92d0faa1ee90d23acd3e305bc175 (diff)
eval: fix evaluating undifferentiated ψ in cylindrical coordinates
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index b5f153e..9b94141 100644
--- a/eval.c
+++ b/eval.c
@@ -40,7 +40,7 @@ static int eval_psi_cylindric(const BDContext *bd,
double *basis_val_rho = NULL, *basis_val_z = NULL;
- double add = 0.0;
+ double add = (diff_order[0] || diff_order[1]) ? 0.0 : 1.0;
int ret = 0;