Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly pass arguments to equilibrate from fortran to cpp #870

Merged
merged 1 commit into from
Jun 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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