| ca5434da | 28-Aug-2019 |
Lawrence Mitchell <lawrence@wence.uk> |
PetscLayout: forbid calling setup twice with different sizes
* PetscLayout objects should be considered immutable, especially because they can be shared. * Make use of PetscLayoutCreateFromSizes().
PetscLayout: forbid calling setup twice with different sizes
* PetscLayout objects should be considered immutable, especially because they can be shared. * Make use of PetscLayoutCreateFromSizes(). * setupcalled is now the single indicator that PetscLayout is ready. * Insure the rest of variables (e.g. map->rstart) are calculated even if n, N and range are set.
show more ...
|
| 20e823e8 | 04-Aug-2019 |
Barry Smith <bsmith@mcs.anl.gov> |
Move higher level (IS level) hdf5 function prototypes to new file petsclayouthdf5.h
This is a fix for PETSc v3.11.3 which cannot compile code that does not include the -I search path for HDF5 even t
Move higher level (IS level) hdf5 function prototypes to new file petsclayouthdf5.h
This is a fix for PETSc v3.11.3 which cannot compile code that does not include the -I search path for HDF5 even though the code do not use HDF5 since the #if defined(PETSC_HAVE_HDF5) #include <H5Ipublic.h> is directly in petscis.h
This prevents polluting the public IS level include files with HDF5 material
This hopefully can be ported directly also to the master branch and cleanup the pollution there as well.
Note that the code in question does not use IS but does use PetscLayout hence the name of the new include file
Commit-type: bug-fix, portability-fix Reported-by: Drew Parson Thanks-to: Lisandro Dalcin <dalcinl@gmail.com> (cherry picked from commit 51e210a943a96e6acf92eea785f1e143d67148d9)
show more ...
|