Skip to content

Commit

Permalink
Correctly pass arguments to equilibrate to cpp from fortran
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Holland authored and speth committed Jun 20, 2020
1 parent 2736310 commit 4bf3baa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fortran/fct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4bf3baa

Please sign in to comment.