[Thread Prev][Thread Next][Index]

Re:re: Namelist record problems on IBM RS/6000



	* * * * Namelist READs on IBM/AIX * * * *

Hi Andreas,

I believe there is a simple environment variable change on IBM/AIX systems that
can be used to make the Namelist READs work correctly. An example of the
command to set this environment variable in the c shell is:

	% setenv XLFRTEOPTS namelist=old

This command can be inserted into the users .login file.

IBM has changed the way it formats Namelists in its recent versions of "xlf"
(a.k.a. "f77" in other Unix environments). They provided the environment
variable XLFRTEOPTS as a means to restore the previous behavior. (Don't you
love it!)

We will insert an explanation regarding this environment variable into the file
$FER_DIR/README.AIX for future anonymous ftp users. Thanks for pointing out the
omission.

	- steve

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

On Feb 16,  1:34pm, Andreas Manschke wrote:
> Subject: Namelist record problems on IBM RS/6000
> Hi,
>
> please excuse me if this topic is already known to the
> ferret community, but I'm quite new and don't know what
> has happend in this group before.
>
> I have just copied FERRET Version 4.12 for IBM RS/6000,
> all files are from abyss.pmel.noaa.gov:/pub/ibm_aix
>
> Installation was very easy, but during the tutorial
> ( GO tutorial ) there were problems with the description
> files:
>
> ME> source /usr/local/lib/ferret_paths
> appending ferret path
> ME> ferret
>         NOAA/PMEL TMAP
>         Program FERRET (no GUI)
>         Version 4.12 - 01/03/96
>         16-Feb-96 13:16
>
> yes? SET DATA etopo120.des
>  **TMAP ERR: Error in namelist record
>              Didn't find: FORMAT_RECORD; or file not descriptor file
>              Data set: /usr/local/ferret/fer_dsets/descr/etopo120.des
> yes?
>
>
> The problem remains for all fer_dsets/descr/*.des.
>
> The solution was to change all description files (fer_dsets/descr/*.des)
> to Fortran-90 NAMELIST standard, i.e. records begin with
> &RECORD_NAME   (instead of $RECORD_NAME)
> and end with
> /              (instead of $END)
>
>
>
> The following small script should do the changes:
>
> #!/bin/sh
> for filename in `ls *.des`
> do
>   if [ -f $filename.1 ]
>      then
>      echo "$filename.1 exists ! Overwrite ? (y/n)"
>      read answer
>      if [ "$answer" = "y" -o "$answer" = "Y" ]
>         then
>         /bin/mv -i $filename $filename.orig
>         sed -e 's/\$END/\//g' $filename.orig > $filename.1
>         sed -e 's/\$/\&/g' $filename.1 > $filename
>         /bin/rm $filename.1
>         echo "$filename changed"
>         else
>         echo "Skipping $filename"
>      fi
>      else
>      /bin/mv -i $filename $filename.orig
>      sed -e 's/\$END/\//g' $filename.orig > $filename.1
>      sed -e 's/\$/\&/g' $filename.1 > $filename
>      /bin/rm $filename.1
>      echo "$filename changed"
>   fi
> done
>
>
>
> Andreas.
>
>
> --
> *****************************************************************************
> * Dr. Andreas Manschke              | E-Mail: anma@palmod.uni-bremen.de     *
> * Universitaet Bremen               | http://www.palmod.uni-bremen.de/~anma *
> * Fachbereich 5 - Geowissenschaften | Tel: +49 (0)421 218 7190              *
> * Postfach 33 04 40                 | Fax: +49 (0)421 218 7040              *
> * D-28334 Bremen                    |                                       *
> * Germany                           |                                       *
> *****************************************************************************
>
>-- End of excerpt from Andreas Manschke




-- 

		|  NOAA/PMEL               |  ph. (206) 526-6080  
Steve Hankin	|  7600 Sand Point Way NE  |  FAX (206) 526-6744
		|  Seattle, WA 98115-0070  |  hankin@pmel.noaa.gov


[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / ERL / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement