[petsc-users] Compilation error with ifort: invalid return statement in main
Praveen C
cpraveen at gmail.com
Sun Nov 19 03:16:59 CST 2017
Dear all
In the main program, if I have a line like
call PetscInitialize('param.in', ierr); CHKERRQ(ierr)
compiling with mpifort gives
main.f95(17): error #6353: A RETURN statement is invalid in the main program.
call PetscInitialize('param.in', ierr); if (ierr .ne. 0) then ; call PetscErrorF(ierr); return; endif
—————————————————————————————————————————————^
It compiles fine with gfortran. What can I do for the ifort case ?
Thanks
praveen
More information about the petsc-users
mailing list