Welcome, Guest
Username: Password: Remember me

TOPIC: Error when modifying the subroutines tr3 and read_fic_frliq

Error when modifying the subroutines tr3 and read_fic_frliq 3 years 6 months ago #38433

  • Lan Anh
  • Lan Anh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 1
Hello,
I am trying to modify the two subroutines tr3.f and read_fic_frliq.f to read
the values of the second tracer at each node of the upper boundary. This tracer also varies in time so it is read from the FORMATTED DATA FILE 1.

However, I got the following error:
MEMORY ALLOCATION ERROR FOR TIME_RFF
and
MEMORY ALLOCATION ERROR FOR INFIC_RFF

Could someone help me to figure out and solve this problem please?

All files are attached.

Thanks in advance,
Lan Anh
Attachments:
The administrator has disabled public write access.

Error when modifying the subroutines tr3 and read_fic_frliq 3 years 6 months ago #38437

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

Which release of TELEMAC do you use?
Can you send the steering files + other possible input files to reproduce your issue?

Chi-Tuan
The administrator has disabled public write access.

Error when modifying the subroutines tr3 and read_fic_frliq 3 years 6 months ago #38440

  • Lan Anh
  • Lan Anh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 1
Hi Chi-Tuân,
I use the version v8p1r0. The steering file is enclosed.


Regards,
Lan Anh
Attachments:
The administrator has disabled public write access.

Error when modifying the subroutines tr3 and read_fic_frliq 3 years 6 months ago #38441

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Module Declarations_Telemac2D in user fortran file !!!
Could be a potential explanation of the problem...
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: Lan Anh

Error when modifying the subroutines tr3 and read_fic_frliq 3 years 6 months ago #38443

  • Lan Anh
  • Lan Anh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 1
Dear Christophe,
Nothing changed in the module declarations_telemac2d compared to the original one. If we take it out, the result is still the same with the above mentioned errors.
I added it in the the fortran because firstly I changed the length of the two variables: CHOIX_RFF and LASTWHAT_RFF from 9 to 16 characters directly in declarations_telemac2d, but it did not work.
CHARACTER(LEN=16) CHOIX_RFF(MAXVALUE_RFF),LASTWHAT_RFF
So I added two new variable in the subroutine user_read_fic_frliq and forgot to take that module out.
CHARACTER(LEN=16) TR_CHOIX_RFF(MAXVALUE_RFF),TR_LASTWHAT_RFF

Lan Anh
The administrator has disabled public write access.

Error when modifying the subroutines tr3 and read_fic_frliq 3 years 6 months ago #38449

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

There is at least one issue with memory overflow for array OKTR3. Its size is MAXFRO times MAXTRA, see LECDON_TELEMAC3D subroutine: ALLOCATE(OKTR3(MAXFRO,MAXTRA))

I would recommend you to use debug options to compile and run, e.g. if using gfortran compiler, see the ones used for S9.gfortran.debug configuration in the $HOMETEL/configs/systel.edf.cfg file:
-g -Wall -fcheck=all -fbacktrace -fbounds-check -finit-integer=-1 -finit-real=nan -ffpe-trap=invalid,zero,overflow

Hope this helps,

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

Error when modifying the subroutines tr3 and read_fic_frliq 3 years 6 months ago #38459

  • Lan Anh
  • Lan Anh's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 20
  • Thank you received: 1
Dear Chi-Tuân and Christophe,
Finally, I found the error and corrected it.
Thank you both,
Lan Anh
The administrator has disabled public write access.
Moderators: pham

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