Closed AnirbanKopty closed 2 years ago
Can you send me your Makefile.in, and the output of the following command?
mpif90 --show
I have changed the extension to .txt since GitHub didn't allow me to upload .in file Makefile.txt
And, about the command:
[20ph40006@login02 src]$ pwd
/scratch/20ph40006/GHOST/3D/src
[20ph40006@login02 src]$ mpif90 --show
gfortran: error: unrecognized command line option ‘--show’
Also, I noticed one thing, while running the make command to build the lagrangian enabled SOLVER in my own PC (the earlier one is on HPC), it worked, here's the Makefile_PC.txt which worked in my PC.
OK, it seems you are using gfortran. Try doing the following:
make dist
before compiling again, just in case some old objects were left from a previous compilation. Also, try doing
gfortran --version
in your PC and in the cluster. Old versions of GCC had a problem with finalizations, so let's compare the versions you are using just in case.
I see, maybe this is the issue
GNU Fortran (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
Copyright (C) 2015 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
GNU Fortran (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I'll see if the latest version solves it, thank you
Thanks a lot, the problem is solved, the issue was with the old gfortran, thank you again!
I was trying to build (make) the GHOST binary executable file for the HD solver with lagrangian particles
PARTICLES = lag
in the Makefile.in where I had specified all the paths which worked flawlessly for making the HD solver without lagrangian particles.Below is the output in shell for the make command which contains the error
make command output
I'm unsure as to what is wrong at this point.