Prevents a segfault to occur.
Description
Prevents a segfault to occur.
When calling the routine ion_copy, we implicitly call its finalizer, which can lead to a segfault, for instance in the case IonsTimeDependentDisplacements
is present in the input file.
News snippet
Prevents a segfault to occur.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.