PrincetonUniversity / tristan-mp-v2

Tristan-MP v2 [public]
https://princetonuniversity.github.io/tristan-v2/
BSD 3-Clause "New" or "Revised" License
12 stars 3 forks source link

Compilation errors related to m_userfile module #11

Closed rgill3141 closed 1 year ago

rgill3141 commented 1 year ago

Hi Hayk,

I was able to successfully compile the user_2d_rec example, but now I'm having issues with my own user file. I've compiled this same user file on a different cluster before and didn't have any issues. I'm wondering if something has changed in the latest version of the code. This time I've issued make clean before compilation. All the other code modules compile fine. The errors that I'm getting are:

==============================================

src/main/finalize.F90:8:23:

    8 |   use m_userfile, only: userDeallocate
      |                       1
Error: Symbol 'userdeallocate' referenced at (1) not found in module 'm_userfile'
make: *** [Makefile:56: build/src/main/finalize.o] Error 1
make: *** Waiting for unfinished jobs....
[OK]: compiled src/algorithms/particle_mover.F90
src/restart/restart.F90:16:23:

   16 |   use m_userfile, only: readUsrRestart, writeUsrRestart
      |                       1
Error: Symbol 'readusrrestart' referenced at (1) not found in module 'm_userfile'
src/restart/restart.F90:16:39:

   16 |   use m_userfile, only: readUsrRestart, writeUsrRestart
      |                                       1
Error: Symbol 'writeusrrestart' referenced at (1) not found in module 'm_userfile'
make: *** [Makefile:55: build/src/restart/restart.o] Error 1

==============================================

My configure command is: python configure.py -2d -mpi08 -hdf5 -extfields --user=user_alfven_NEW. I can send you my user file if that will help.

Thanks, Ramandeep Gill

rgill3141 commented 1 year ago

Okay, I managed to compile my user file by adding #include "optional.F" at the very end. I saw this in other user files provided with the code and don't recall seeing it in the earlier versions.