Welcome, Guest
Username: Password: Remember me

TOPIC: Fatal error cc1gm2 using user_utimp_telemac2d.f

Fatal error cc1gm2 using user_utimp_telemac2d.f 1 year 11 months ago #41646

  • Elodie09
  • Elodie09's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
Hello,

I am using the subroutine user_utimp_telemac2d.f. I have already run some subroutines and modules. I was interested to make some subroutines and modules of Telemac independent of Telemac such as allblo.f calling it allblo_home.f.

But I receive a message error a fatal error that the module cannot be opened because it does not find bief_home.mod.
Fatal error: Cannot open module file 'bief_home.mod' for reading at (1): No such file or directory

Hence, using the line gfortran -c I was able to compile but then I receive another fatal error:
gfortran: fatal error: cannot execute 'cc1gm2': execvp: No such file or directory

Is there a package that I am missing to install from gfortran?
I have attached a picture of the last fatal error.
cc1gm2_error.png





Thanks
The administrator has disabled public write access.

Fatal error cc1gm2 using user_utimp_telemac2d.f 1 year 11 months ago #41648

  • Elodie09
  • Elodie09's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 1
Hi,
Finally, I have found that the solution was quite simple but before posting I have tried to solve the problem for several days and searched in other forums.

The solution is to put the modules first and then the subroutines in the user_fortran file. The order is important.

Thanks
The administrator has disabled public write access.

Fatal error cc1gm2 using user_utimp_telemac2d.f 1 year 11 months ago #41712

  • pham
  • pham's Avatar
  • OFFLINE
  • Administrator
  • Posts: 1559
  • Thank you received: 602
Hello Elodie,

Indeed, when compiling subroutines and modules (e.g. the whole TELEMAC-SYSTEM or specific files in FORTRAN FILE), the modules have to be compiled first.
A way to force that is to change the name of the files to be compiled first starting with letter a e.g. if you provide different files in the Fortran file folder. If using one single file containing all modified subroutines and modules, the modules have to be written first as you have already written.

Chi-Tuan
The administrator has disabled public write access.
The following user(s) said Thank You: Elodie09
Moderators: pham

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.