aboutsummaryrefslogtreecommitdiff
path: root/src/sno_charge.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sno_charge.c')
-rw-r--r--src/sno_charge.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/sno_charge.c b/src/sno_charge.c
index f0d38ec..130df9f 100644
--- a/src/sno_charge.c
+++ b/src/sno_charge.c
@@ -116,6 +116,26 @@ double get_qhi(void)
return qhi;
}
+double get_qmean(void)
+{
+ if (!initialized) {
+ fprintf(stderr, "charge interpolation hasn't been initialized!\n");
+ exit(1);
+ }
+
+ return qmean;
+}
+
+double get_qstd(void)
+{
+ if (!initialized) {
+ fprintf(stderr, "charge interpolation hasn't been initialized!\n");
+ exit(1);
+ }
+
+ return qstd;
+}
+
static double nlopt_log_pq(unsigned int n, const double *x, double *grad, void *params)
{
int i;