[petsc-users] Variable and function reference problem in Windows & Linux

Jed Brown jed at jedbrown.org
Thu Aug 7 11:27:08 CDT 2014


Danyang Su <danyang.su at gmail.com> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140807/2c3e6f06/attachment.pgp>


More information about the petsc-users mailing list