[petsc-users] Variable and function reference problem in Windows & Linux
Danyang Su
danyang.su at gmail.com
Thu Aug 7 10:15:20 CDT 2014
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.
2. DMDAGetGlobalIndicesF90
This function works fine on Windows but results into undefined reference
on Linux.
The development environment are as follows:
Windows: PETSc 3.4.4, Intel Parallel Studio 2013XE (Fortran)
Linux: PETSc 3.5.1, Gfortran 4.8.2.
How to solver this problem, especially the second one.
Thanks and Regards,
Danyang
More information about the petsc-users
mailing list