Danyang Su <[email protected]> writes: > Hi All, > > I have the codes first developed on Windows OS, it works fine. Now the > codes have been ported to Linux, there are some compiling errors > regarding some variable and function definition, as shown below. > > 1. DMDA_BOUNDARY_NONE & DM_BOUNDARY_NONE > I should use DMDA_BOUNDARY_NONE on windows and DM_BOUNDARY_NONE on > linux, otherwise, there will be like undefined type.
Looks like you upgraded PETSc.
* DMDABoundaryType has become DMBoundaryType, and all the enumeration
values have also been renamed.
http://www.mcs.anl.gov/petsc/documentation/changes/35.html
> 2. DMDAGetGlobalIndicesF90
> This function works fine on Windows but results into undefined reference
> on Linux.
* DMDAGetGlobalIndices(DM,PetscInt*,const PetscInt*[]) and
DMDARestoreGlobalIndices(DM,PetscInt*,const PetscInt*[]) are
removed, use DMGetLocalToGlobalMapping() to get this information
http://www.mcs.anl.gov/petsc/documentation/changes/35.html
pgpz0I7xpzKOX.pgp
Description: PGP signature
