<div dir="ltr">Hello,<div><br></div><div>I recently installed the latest version of Petsc and tried to build a case with two fortran files (One main and one subroutine). I looked into similar examples and found one in petsc/src/dm/tutorials: ex13f90.F90. This code also needs a second file called ex13f90aux.F90</div><div><br></div><div>When I tried to build this example with "make ex13f90",  I receive this error warning:</div><div><br></div><div>src/dm/tutorials/ex13f90.F90:24: multiple definition of `main'<br></div><div>src/dm/tutorials/ex13f90.F90:24: first defined here<br></div><div><br></div><div>Hence, I was unable to run an example case from the tutorials folder. I tested in two different pc's, one with Ubuntu 16 and one with Ubuntu 18. Both cases use gnu compilers. Also test both mpich and openmpi.</div><div><br></div><div>Are there anyone that saw a similar problem who knows a workaround to resolve this issue? Maybe a makefile example with multiple fortran files would be useful. Thanks.</div><div><br></div><div>Best,</div><div>Erhan</div></div>