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

Redirect f2c to correct call #2473

Merged
merged 2 commits into from
Sep 29, 2020
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion bindings/Fortran/f2c/adios2_f2c_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void FC_GLOBAL(adios2_steps_f2c, ADIOS2_STEPS_F2C)(int64_t *steps,
{
*steps = -1;
size_t stepsC;
*ierr = static_cast<int>(adios2_current_step(&stepsC, *engine));
*ierr = static_cast<int>(adios2_steps(&stepsC, *engine));

if (*ierr == static_cast<int>(adios2_error_none))
{
Expand Down
2 changes: 1 addition & 1 deletion testing/adios2/bindings/fortran/TestBPWriteTypes.F90
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ program TestBPWriteTypes
call adios2_open(bpReader, ioRead, "ftypes.bp", adios2_mode_read, ierr)

call adios2_steps(nsteps, bpReader, ierr)
if(nsteps /= 3) write(*,*) 'nsteps: ', nsteps !stop 'ftypes.bp must have 3 steps'
if(nsteps /= 3) stop 'ftypes.bp must have 3 steps'

call adios2_inquire_variable(variables(1), ioRead, "var_I8", ierr)
if (variables(1)%name /= 'var_I8') stop 'var_I8 not recognized'
Expand Down