From 4bf3baa8a1062ef2c3c62430d953d5bb7a76db6b Mon Sep 17 00:00:00 2001 From: Dave Holland Date: Fri, 19 Jun 2020 10:22:34 +0100 Subject: [PATCH] Correctly pass arguments to equilibrate to cpp from fortran --- src/fortran/fct.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fortran/fct.cpp b/src/fortran/fct.cpp index a01cc93c10..7f3bd4f44a 100644 --- a/src/fortran/fct.cpp +++ b/src/fortran/fct.cpp @@ -565,10 +565,10 @@ extern "C" { return 0; } - status_t th_equil_(const integer* n, char* XY, char* solver, double rtol, int max_steps, int max_iter, int estimate_equil, int log_level, ftnlen lensolver, ftnlen lenxy) + status_t th_equil_(const integer* n, char* XY, char* solver, doublereal* rtol, int* max_steps, int* max_iter, int* estimate_equil, int* log_level, ftnlen lenxy, ftnlen lensolver) { try { - _fth(n)->equilibrate(f2string(XY,lenxy), f2string(solver,lensolver), rtol, max_steps, max_iter, estimate_equil, log_level); + _fth(n)->equilibrate(f2string(XY,lenxy), f2string(solver,lensolver), *rtol, *max_steps, *max_iter, *estimate_equil, *log_level); } catch (...) { return handleAllExceptions(-1, ERR); }