summaryrefslogtreecommitdiff
path: root/src/brill.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-09-11 12:05:20 +0200
committerAnton Khirnov <anton@khirnov.net>2014-09-11 12:05:20 +0200
commitef4ab28e7fc7486c47075b67d9b6ee326945f370 (patch)
tree61ceabe0c1ae2bfe1a4454f6592facb2e75889bf /src/brill.c
parent5817b21222c84a9aaaa486216933aa068ab0f30b (diff)
Add an option for exporting the expansion coefficients.
Diffstat (limited to 'src/brill.c')
-rw-r--r--src/brill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/brill.c b/src/brill.c
index 4592081..952287e 100644
--- a/src/brill.c
+++ b/src/brill.c
@@ -378,6 +378,9 @@ void brill_data(CCTK_ARGUMENTS)
brill_solve(bd);
+ if (export_coeffs)
+ memcpy(brill_coeffs, bd->psi_coeffs->data, sizeof(*brill_coeffs) * bd->nb_coeffs);
+
prev_bd = bd;
} else
bd = prev_bd;