PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Compilation problem
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Sun Sep 25, 2005 12:21 am    Post subject: pregrid Reply with quote

Hello Mat,

The UNIX/Linux version works with format of the data like:

FILE:2005-09-25_00

while under Windows ":" is not possible symbol for file name so we have to replace in the source code the symbol ":" with "+" for example. The file is:

proc_ingest_first_guess.F.

(actually this file is in the \regridder\src but as I remember I changed only in this file the ":" with "+" at lines 132, 134, 136, the lines may be be different for the different versions of the code but they should be three).

First you can try gribprint command (\regrid\pregrid\src\util\gribprint.exe):

C:\gribprint some_GRIB_file.grib

where some_GRIB_file.grib is a file which store weather data (for example the atmosphere pressure, temperature, dewpoint, wind direction&speed for 00 UTC 09/25/2005. At this point I get error. If I run gribprint without data file (only "c:\gribprint.exe") then it works and gives me the options (-v,-V=verbose,etc.). With gribprint we look inside the GRIB files to check what is the time stamp, for what time is the GRIB file (gribprint show a list of the dates of each variable in a column and other data if used -v or -V options).

Here are two grib files:

http://www.stormlab.net/mat/GRIBFILE.AA.txt
http://www.stormlab.net/mat/GRIBFILE.AB.txt
http://www.stormlab.net/mat/pregrid.namelist.txt

Rename gfs1.grib to GRIBFILE.AA, gfs2.grib to GRIBFILE.AB, pregrid.namelist.txt to pregrid.namelist (it's not possible to download from my web site files without extension, only jpg,html,txt,etc.) and put this files in \regrid\pregrid\grib.misc\ directory.

Run \regrid\pregrid\grib.misc\pregrid_grib.exe

When it tires to read the data it fails. I think that the problem is in the file \regrid\pregrid\util\cio.c (which is realted with the data reading/writing, and as you see is the only one C file in MM5 package) or just in the compiler's flags.

Thanks for your time!

Angel
Back to top
View user's profile
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Sun Sep 25, 2005 12:27 am    Post subject: pregrid Reply with quote

Under UNIX/Linux you have only to update the pregrid.csh file:

- data directory and the prefix of the GRIB filenames
- start/end date of the input GRIB data
- time interval between the dates of the GRIB files in seconds (21600 in our case)

and to run it.

Angel
Back to top
View user's profile
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Wed Oct 05, 2005 9:45 am    Post subject: pregrid Reply with quote

Hi Mat,

As I see you are quite busy.

When Portland create new version of the compiler I will turn back to compile pregrid again.

Angel
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6206
Location: The Portland Group Inc.

PostPosted: Wed Oct 05, 2005 12:47 pm    Post subject: Reply with quote

Hi Angel,

I have been able to look a this for a few hours, but have only encountered porting problems, not the Access Violation error you reported. Have you contacted NCAR to see if they have a Win32 port of pregridder?

- Mat
Back to top
View user's profile
stormlab



Joined: 23 Jul 2005
Posts: 28

PostPosted: Wed Oct 05, 2005 12:57 pm    Post subject: pregrid Reply with quote

Hi Mat,

NCAR doesn't have win32 port of the pregridder.

> I have been able to look a this for a few hours,

Thank you very much for your effort!

I have gribprint.exe for windows compiled with PGI 6.0 for windows and it works until it read the GRIB input data. The pregrid works also but it cannot read the data.

What were the porting problems? So the problem is not in the pgf90 but in the source codes?

Angel

>>>>>>>>>>>>

Hi Angel,

I have been able to look a this for a few hours, but have only encountered porting problems, not the Access Violation error you reported. Have you contacted NCAR to see if they have a Win32 port of pregridder?

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group