Welcome, Guest
Username: Password: Remember me

TOPIC: Compile TELEMAC with pgi

Compile TELEMAC with pgi 10 years 1 month ago #14405

  • sophie
  • sophie's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
hello,

I am trying to compile TELEMAC V6p3r2 with pgi (2011 version for linux86-64) and run into format problem such as :
PGF90-S-0026-Unmatched quote (/space/ricci/TELEMAC_v6p3r2/v6p3r2/sources/telemac2d/wrihyd.f: 233)

Has anyone been through this successfully ?

Thanks

Sophie
The administrator has disabled public write access.

Compile TELEMAC with pgi 10 years 1 month ago #14406

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello Sophie,

Can you check whether your Fortran codes has more than 72 columns ?
(we are fairly strict about it)

You can also try compiling with the equivalent option to /extend_source:132 just to see if it works -- but ideally you would have to limit your code to 72 characters if possible.

Hope this helps,
Sébastien.
The administrator has disabled public write access.
The following user(s) said Thank You: sophie

Compile TELEMAC with pgi 10 years 1 month ago #14407

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi Sophie

We don't use PGI so this is just an idea ...
As the line 233 in wrihyd is
IF((NOMGEO(I:I).NE.'/').AND.(NOMGEO(I:I).NE.'\')) THEN
maybe this compiler interprets the / or \ and produce this error

kind regards
Christophe
The administrator has disabled public write access.
The following user(s) said Thank You: sophie

Compile TELEMAC with pgi 10 years 1 month ago #14408

  • sophie
  • sophie's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Hi Sebastien, Christophe,

Clearly this is a problem with the interpretation of / and \. I am using the osurce code provided by svn, so the 72 colmuns are fine. I can go ahead and change this specific problem with / and \ , I am just wondering how much of a bruden this is gonna be to fix all the little problem due to pgi compilation over the whole source code.

Sophie
The administrator has disabled public write access.

Compile TELEMAC with pgi 10 years 1 month ago #14413

  • yugi
  • yugi's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 851
  • Thank you received: 244
Hi,

This due to the pgi compiler considering the \ as an escape character.
Just add the option "-Mbackslash" to the cmd_obj.
Here is a description of the option:
-Mpgflag	 Request  PGI-specific actions from the compiler.
	 Many of pgflags optionally begin with	no  (e.g.
	 [no]list).   If the default of such an option is
	 the no variant, this is indicated by no  appear
	 ing in bold italics as in [no]list.  The permit
	 ted pgflags are:

	 anno	   Produce  annotated	assembly   files,
		   where  source  code is intermixed with
		   assembly language.	-Mkeepasm  or  -S
		   must be used as well.

	 [no]backslash
		   (Don't) inhibit the treatment of back
		   slash  as  an  escape   character   in
		   strings.    -Mnobackslash  causes  the
		   standard C backslash escape	sequences
		   to  be  recognized  in quoted strings;
		   -Mbackslash causes the backslash to be
		   treated like any other character.

Hope it helps.
There are 10 types of people in the world: those who understand binary, and those who don't.
The administrator has disabled public write access.
The following user(s) said Thank You: sophie

Compile TELEMAC with pgi 10 years 1 month ago #14414

  • sophie
  • sophie's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
Yep, works fine. I just found the correct option a few minutes ago. Thanks
The administrator has disabled public write access.

Compile TELEMAC with pgi 10 years 1 month ago #14412

  • sophie
  • sophie's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
-Mbackslash ( -Mbackslash causes the backslash to be treated like any other character) dans les options de compilation permet de régler le problème. Ensuite, la compilation s'execute jusqu'au bout. je m'étais donc inquitée pour pas grand chose !

Sophie
The administrator has disabled public write access.
Moderators: borisb

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