Welcome, Guest
Username: Password: Remember me

TOPIC: Wave height changing at the boundary

Re: Wave height changing at the boundary 12 years 4 months ago #4995

  • matthias
  • matthias's Avatar
Hello,

I modified LIMWAC subroutine.
But I'm not sure about the loading of my data file.


READ(26,*) ??? !nom du fichier de houle en entrée
DO ii=1,NPRIV-1,PAS
IF ((LT.EQ.ii*PAS)
READ(26,*) TETA1L(:),FPICL(:),TETA2L(:),
&,HM0PP(:)
END IF
AND DO
REWIND(26)


In this case, where should I save my data file?In the same repertory than LIMWAC?
Should I put the path before the global file name in the FORTRAN programm?
Or should I put it in the CAS in a formatted file 1?

En francais car je doute de mon anglais:

Bonjour,
Je modifie la subroutine Limwac.
Mais je ne suis pas sur de la manière dont je dois charger le fichier de données.


Où faut-il que j'enregistre mon fichier de donnée?
Dois je l'enregistrer au même emplacement que LIMWAC?
Faut-il que je mette le chemin d'accès globale avant le nom de fichier dans le programme Fortran?
Ou encore puis je le mettre dans le fichier formaté 1 dans le CAS?
The administrator has disabled public write access.

Re: Wave height changing at the boundary 12 years 4 months ago #4996

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

You use the canal number 26. That corresponds to 'FORMATTED FILE 1' (in your steering file). You only need to write a relative path or an absolute path in your steering file.

Regards,

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

Re: Wave height changing at the boundary 12 years 4 months ago #4997

  • matthias
  • matthias's Avatar
Ok perfect.
Thank for your answers.

Best Regards

Matthias
The administrator has disabled public write access.

Re: Wave height changing at the boundary 12 years 4 months ago #5001

  • matthias
  • matthias's Avatar
Another question.
Must I replace the original LIMWAC by the modified LIMWAC in the folder 'source'?
Or must I declare modified LIMWAC in fortran programme in the stearing file?


I check in " boundary condtion modify by limit user" and comment this lignes in LIMWAC:
! PARTIE A SUPPRIMER SI ON FAIT DES MODIFICATIONS
! DELETE THESE LINES IF MODIFICATIONS HAVE BEEN IMPLEMENTED
!
! IF (LNG.EQ.1) THEN
! WRITE(LU,*)'***** ERREUR LIMWAC ******'
! WRITE(LU,*)
! & ' VOUS NE MODIFIEZ PAS LE SPECTRE AUX LIMITES ALORS QUE'
! WRITE(LU,*)' VOUS EN DEMANDEZ LA POSSIBILITE'
! ELSE
! WRITE(LU,*)'***** ERROR LIMWAC ******'
! WRITE(LU,*)
! & ' YOU DID NOT MODIFY THE BOUNDARY SPECTRUM WHEREAS '
! WRITE(LU,*)' YOU ASK FOR THAT '
! ENDIF

But I have the error message:
***** ERROR LIMWAC ******'
VOUS NE MODIFIEZ PAS LE SPECTRE AUX LIMITES ALORS QUE VOUS EN DEMANDEZ LA POSSIBILITE.
The administrator has disabled public write access.

Re: Wave height changing at the boundary 12 years 4 months ago #5003

  • pprel
  • pprel's Avatar
You must declare modified LIMWAC in the steering file at the key word FORTRAN FILE. No matter the name of the file, as long as the subroutine is still called LIMWAC.
The administrator has disabled public write access.

Re: Wave height changing at the boundary 12 years 4 months ago #5034

  • matthias
  • matthias's Avatar
My programm don't work, but Tomawak read my LIMWAC subroutine. So I can continue and debbug it.
Thank you for your help.
The administrator has disabled public write access.

Re: Wave height changing at the boundary 12 years 4 months ago #5054

  • matthias
  • matthias's Avatar
Hello,

I wondered if there was an possibility of finishing the program normally, but in advance.
Is there a flag variable for that?

Best regards

Matthias
The administrator has disabled public write access.

Re: Wave height changing at the boundary 12 years 4 months ago #5055

  • pprel
  • pprel's Avatar
Hello,

EXIT is used to go out of a loop (while,do). STOP enable to completly stop the program execution. I think that is what you need.

Sincerely,
Pauline
The administrator has disabled public write access.

Re: Wave height changing at the boundary 12 years 4 months ago #5063

  • matthias
  • matthias's Avatar
Thank you, this is the instruction STOP that I was looking
Best regards

Matthias
The administrator has disabled public write access.

Re: Wave height changing at the boundary 11 years 9 months ago #7070

  • wenyi
  • wenyi's Avatar
Hi
I read your limwac_PP.f,and have some question, the program do not call "lim.txt",then How substituted the parameters and calculated it? I set up “lim.txt”for my boundry,others are not change, Calculation results were all turned into 0.
Hope you helps

wenyi
The administrator has disabled public write access.
Moderators: tfouquet

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