[petsc-users] petscvec.mod version problem

Peter Zhoujie Lu lzj at umich.edu
Tue Aug 7 16:40:57 CDT 2012


Hi Jed,

Thanks for your reply. Sorry I am not quite sure about what you meant. Did
you mean that petscvec.mod was compiled with a older compiler? How to track
down this? I compiled petsc with gcc(4.8).

Peter

On Tue, Aug 7, 2012 at 5:30 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> There is a version of the module compiled using an older compiler version.
> It could come from here or from system paths. You have to track down the
> stray module file and delete it (or at least get it out of a path searched
> by the compiler).
>
>
> On Tue, Aug 7, 2012 at 3:28 PM, Peter Zhoujie Lu <lzj at umich.edu> wrote:
>
>> Hi All,
>>
>> I am trying to compile my code that uses petscvec, I got an error about
>> version of petscmod.mod. I tried to search online, but couldn't find the
>> answer. I was wondering if anyone can help. I am using gfortran, openmpi on
>> OSX 10.7. The petsc version is 3.3-p2. Thanks.
>>
>> Peter
>>
>> openmpif90 -I../../mod -I../../externals/SU_MPI/mod
>> -I../../externals/ADT/mod -I../../src/python/fortran/aeroElastic
>> -I../../src/inputParam -I../../src/turbulence  -I/opt/local/include
>> -DHAS_ISNAN  -fpic -r8 -O2 -g
>>  -I/Users/lvzhoujie/Work/petsc-3.3-p2/include
>> -I/Users/lvzhoujie/Work/petsc-3.3-p2/linux-ifort-opt/include
>> -I/Users/lvzhoujie/Work/petsc-3.3-p2  -c getADjoint.F90 -o
>> ../../obj/getADjoint.o
>>
>> getADjoint.F90:18.14:
>>
>>   use petscvec
>>               1
>> Fatal Error: Wrong module version '9' (expected '4') for file
>> 'petscvec.mod' opened at (1)
>> make[4]: *** [getADjoint.o] Error 1
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120807/54ba0977/attachment.html>


More information about the petsc-users mailing list