[petsc-dev] Error with petsc-dev

Tabrez Ali stali at geology.wisc.edu
Tue Nov 10 11:22:50 CST 2015


Barry

I did that before compiling the example. I will try it again.

Btw can you tell me what is the change in the PetscOptionsGetString routine?

I am looking at these links

http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Sys/PetscOptionsGetString.html
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscOptionsGetString.html

but I am not sure what the difference is (for Fortran users).

Tabrez

On 11/10/2015 11:12 AM, Barry Smith wrote:
>    rm -r $PETSC_ARCH
>
>    and run configure and make again.
>
>    Barry
>
>> On Nov 10, 2015, at 11:11 AM, Tabrez Ali <stali at geology.wisc.edu> wrote:
>>
>> Hello
>>
>> I am having some trouble using PetscOptionsGetString in my own code with petsc-dev. So I also tried a PETSc example but it fails to compile. Any ideas as to what is wrong. There seems to be a change in http://www.mcs.anl.gov/petsc/documentation/changes/dev.html
>>
>> stali at i5:~/petsc-dev/src/sys/examples/tutorials$ make ex10f90
>> /opt/mpich3/bin/mpif90 -c -Wall -Wno-unused-variable -ffree-line-length-0 -Wno-unused-dummy-argument -O2 -I/home/stali/petsc-dev/include/petsc/finclude -I/home/stali/petsc-dev/include -I/home/stali/petsc-dev/arch-linux2-c-opt/include -I/opt/mpich3/include    -o ex10f90.o ex10f90.F90
>> /opt/mpich3/bin/mpif90 -Wall -Wno-unused-variable -ffree-line-length-0 -Wno-unused-dummy-argument -O2 -I/home/stali/petsc-dev/include/petsc/finclude -o ex10f90 ex10f90.o  -Wl,-rpath,/home/stali/petsc-dev/arch-linux2-c-opt/lib -L/home/stali/petsc-dev/arch-linux2-c-opt/lib  -lpetsc -llapack -lblas -Wl,-rpath,/home/stali/petsc-dev/arch-linux2-c-opt/lib -lmetis -lX11 -lpthread -lm -Wl,-rpath,/opt/mpich3/lib -L/opt/mpich3/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -lmpifort -lgfortran -lm -lgfortran -lm -lquadmath -lm -lmpicxx -lstdc++ -Wl,-rpath,/opt/mpich3/lib -L/opt/mpich3/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.9 -L/usr/lib/gcc/x86_64-linux-gnu/4.9 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -ldl -Wl,-rpath,/opt/mpich3/lib -lmpi -lgcc_s -ldl
>> ex10f90.o: In function `MAIN__':
>> ex10f90.F90:(.text+0x7e): undefined reference to `petscoptionsinsertfileyaml_'
>> collect2: error: ld returned 1 exit status
>> makefile:70: recipe for target 'ex10f90' failed
>> make: [ex10f90] Error 1 (ignored)
>> /bin/rm -f -f ex10f90.o
>>
>> Thanks
>>
>> T





More information about the petsc-dev mailing list