Skip to content

Conversation

robertodr
Copy link
Member

This PR fixes the Fortran API for the surface function NumPy save/load functions and adds calls to these functions in the C and Fortran host example executables.
These calls are just to exercise these functions and protect against "basic" API breakages, thus fixing #70
A bug (dormant) was also fixed in the C++ API: the save function was writing the NumPy array file with the incorrect dimension information, subsequently causing the load function to crash.

Todos

  • Developer Interest
  • Fix Fortran API
  • Fix C++ API

Types of changes

Status

  • Ready to go

@robertodr
Copy link
Member Author

@arnfinn @ilfreddy @bast Can we get this merged?

@bast
Copy link
Member

bast commented Jun 23, 2017

You don't mind the merge commits there? If not, then I can press the green button.

@robertodr
Copy link
Member Author

@bast please squash the merge commits. Thanks!

@bast
Copy link
Member

bast commented Jun 24, 2017

You mean all 4 commits into 1 (this is easy) - or commits 3 and 4 into 2? The latter would require me to file a PR to you fixing this which would update this PR.

@robertodr
Copy link
Member Author

robertodr commented Jun 24, 2017 via email

@bast
Copy link
Member

bast commented Jun 24, 2017

There is a button that says that 4 commits will be squashed into one. I am not sure there is more fine-grain after that button. Doubt it but of course I will be glad to be proven wrong.

Some surface function save/load API functions declared the passed
strings with the wrong data type:
   character(c_char), intent(in) :: name
instead of:
   character(c_char), intent(in) :: name(*)

(cherry picked from commit 7fc97c7384fb90f1266e59a70036667ab4fb60f6)
This commit also adds calls to the API functions pcmsolver_save_surface_functions,
pcmsolver_save_surface_function and pcmsolver_load_surface_function in the C_host and
Fortran_host executables. This makes sure that these functions get exercised
and provide a test against trivial API breakages.
@robertodr
Copy link
Member Author

I rebased wrt release/1.Y, I recommend merge without squashing.

@bast bast merged commit 7b528c2 into PCMSolver:release/1.Y Jun 25, 2017
@bast
Copy link
Member

bast commented Jun 25, 2017

Thanks!

@robertodr robertodr deleted the fix-fortran-api branch July 8, 2017 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants