I am having issues getting the HDF5 Viewer to work with Fortran 90. Specifically, I get the following types of errors when attempting to link my executable together:<br><br>/home/user/Dropbox/NTM/SIEVETEST/OPERATOR/src/output.f90:664: undefined reference to `petscviewerhdf5settimestep_'<br>
/home/user/Dropbox/NTM/SIEVETEST/OPERATOR/src/output.f90:668: undefined reference to `petscviewerhdf5pushgroup_'<br>/home/user/Dropbox/NTM/SIEVETEST/OPERATOR/src/output.f90:675: undefined reference to `petscviewerhdf5popgroup_'<br>
<br>It seems like the Fortran interfaces for the HDF5-specific viewer functions are not present (there are no issues with the other viewer functions).<br><br>My linking command is:<br><br>mpif90 -ffree-line-length-none -cpp -Wall -O0 -g -idirafter ${PETSC_DIR}/include -idirafter ${PETSC_DIR}/${PETSC_ARCH}/include -o swe swe.o initialize.o TRISK.o common.o scheme.o output.o mesh.o orthodual.o operators.o function_spaces.o stencils.o initialconditions.o timestepping.o -Wl,-rpath,${PETSC_DIR}/${PETSC_ARCH}/lib -L${PETSC_DIR}/${PETSC_ARCH}/lib -lpetsc -ltriangle -lX11 -lparmetis -lmetis -lpthread -lctetgen -lchaco -lml -lflapack -lfblas -lm -lhdf5_fortran -lhdf5hl_fortran -lhdf5_hl -lhdf5 -lz <br>
<br>The code looks like:<br><br>#include <finclude/petsc.h90><br><br>call PetscViewerHDF5Open(PETSC_COMM_WORLD, 'testfile.h5', FILE_MODE_WRITE, viewer, ierr)<br>CHKERRQ(ierr)<br>call PetscViewerHDF5SetTimestep(viewer,step,ierr)<br>
CHKERRQ(ierr)<br>call PetscViewerHDF5PushGroup(viewer,'/testgroup',ierr)<br>CHKERRQ(ierr)<br><br clear="all">I configured the latest version of petsc-dev with the following options:<br><br> --download-boost --download-chaco --download-ctetgen --download-f-blas-lapack --download-fiat --download-generator --download-metis --download-ml --download-mpich --download-parmetis --download-scientificpython --download-triangle --download-hdf5 --with-openmp --with-threadcomm --with-pthreadclasses --with-clanguage=cxx --with-dynamic-loading --with-shared-libraries --with-sieve PETSC_ARCH=arch-linux2-cxx-debug<br>
<br>Any ideas?<br><br>-- <br>Chris Eldred<br>DOE Computational Science Graduate Fellow<br>Graduate Student, Atmospheric Science, Colorado State University<br>B.S. Applied Computational Physics, Carnegie Mellon University, 2009<br>
<a href="mailto:chris.eldred@gmail.com" target="_blank">chris.eldred@gmail.com</a> / <a href="mailto:celdred@atmos.colostate.edu" target="_blank">celdred@atmos.colostate.edu</a>