HDF Library

Information about Programming in the MOHID Framework
renanbribeiro@yahoo.com.br
MOHID User
Posts: 26
Joined: Thu Jan 01, 1970 00:00
Location: Universidade Santa Cecília - Santos, Brazil

HDF Library

Postby renanbribeiro@yahoo.com.br » Tue Aug 05, 2008 11:47

Hello,

I am trying to compiling MOHID, folloing the instruction from wiki, but i am not obtainig success. I think that my error is on the HDF Libraries. I am using the files from the folder:

...\\SourceCode_v4.9_25June2007\\HDF_1_6_5\\SingleThread

But on this folder doesn't have the files hdf5_hl.lib and the hfd5_fortran.lib
On the wiki indicates another folder (..\\Libs). But I am not finding this folder (and files)

Someone could send to me the files. Or tell me where is this folder.

Thanks,
Renan

administrator@.
Site Admin
Posts: 348
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Tecnico - Lisbon - Portugal
Contact:

Postby administrator@. » Wed Aug 06, 2008 10:10

Hi Renan,

Which Fortran compiler are you using?

Best regards,
Luis

renanbribeiro@yahoo.com.br
MOHID User
Posts: 26
Joined: Thu Jan 01, 1970 00:00
Location: Universidade Santa Cecília - Santos, Brazil

Postby renanbribeiro@yahoo.com.br » Wed Aug 06, 2008 11:28

Hi Luis,

I am using the Compaq Visual Fortran, and i am trying to compile the MohidWater.exe.

Thanks,

Renan

administrator@.
Site Admin
Posts: 348
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Tecnico - Lisbon - Portugal
Contact:

Postby administrator@. » Wed Aug 06, 2008 15:09

Hi Renan,

You should follow these instructions from this MOHID wiki article:

http://www.mohid.com/wiki/index.php?title=Compiling_with_CVF

I've sent you by e-mail the compiled HDF5 libs and mods for the Compaq compiler. In the current MOHID installation we're just redistributing compiled libs for the Intel compiler.

Best regards,
Luis

renanbribeiro@yahoo.com.br
MOHID User
Posts: 26
Joined: Thu Jan 01, 1970 00:00
Location: Universidade Santa Cecília - Santos, Brazil

Postby renanbribeiro@yahoo.com.br » Wed Aug 06, 2008 17:49

Hello Luis,

Thanks for the help. I recieved the libs.

But I am still with problems in the compilation. I follow exactly the instructions from wiki. These are some of my error mesage:

ModuleFunctions.i90
E:\\Fortran\\Compilação MOHID\\SourceCode_v4.9_25June2007\\MohidBase1\\ModuleFunctions.f90(5666) : Warning: A delimiter is missing or invalid. Any of the following delimiters are valid: , $ / : ) or end-of-format list. [ES]
write(*, '(\" - Residual : \" ES12.5)') resn
--------------------------------------------^
E:\\Fortran\\Compilação MOHID\\SourceCode_v4.9_25June2007\\MohidBase1\\ModuleFunctions.f90(5670) : Warning: A delimiter is missing or invalid. Any of the following delimiters are valid: , $ / : ) or end-of-format list. [ES]
write(*, '(\" - NH MODEL - Global Residual : \" ES12.5)') global_residual
------------------------------------------------------^
E:\\Fortran\\Compilação MOHID\\SourceCode_v4.9_25June2007\\MohidBase1\\ModuleFunctions.f90(5671) : Warning: A delimiter is missing or invalid. Any of the following delimiters are valid: , $ / : ) or end-of-format list.
write(*, '(\" - NH MODEL - Number of iterations : \" I8)') global_n - (KU - KL + 1)
-----------------------------------------------------------^
ModuleDischarges.i90
ModuleDrainageNetwork.i90
E:\\Fortran\\Compilação MOHID\\SourceCode_v4.9_25June2007\\MohidBase1\\ModuleDrainageNetwork.f90(127) : Error: Error in opening the Library module file. [MODULEHDF5]
use ModuleHDF5
--------^
E:\\Fortran\\Compilação MOHID\\SourceCode_v4.9_25June2007\\MohidBase1\\ModuleDrainageNetwork.f90(4228) : Error: Keyword arguments are invalid without an explicit interface. [HDF5_CREATE]
call GetHDF5FileAccess (HDF5_CREATE = HDF5_CREATE)
---------------------------------^
E:\\Fortran\\Compilação MOHID\\SourceCode_v4.9_25June2007\\MohidBase1\\ModuleDrainageNetwork.f90(4231) : Error: Keyword arguments are invalid without an explicit interface. [STAT]
call ConstructHDF5 (Me%ObjHDF5, trim(Me%Files%HDFFile)//\"5\", HDF5_CREATE, STAT = STAT_CALL)
---------------------------------------------------------------------------------------^
E:\\Fortran\\Compilação MOHID\\SourceCode_v4.9_25June2007\\MohidBase1\\ModuleDrainageNetwork.f90(9010) : Error: Keyword arguments are invalid without an explicit interface. [STAT]
call HDF5SetLimits (Me%ObjHDF5, 1, 6, STAT = STAT_CALL)
---------------------------------------------------^
E:\\Fortran\\Compilação MOHID\\SourceCode_v4.9_25June2007\\MohidBase1\\ModuleDrainageNetwork.f90(9015) : Error: Keyword arguments are invalid without an explicit interface. [ARRAY1D]
Array1D = TimePointer, &
---------------------------------^


Its about 891 erros and the program don´t build the [i]exe
.
I send you by email the complete errors mesages

Thanks again,
Renan

administrator@.
Site Admin
Posts: 348
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Tecnico - Lisbon - Portugal
Contact:

Postby administrator@. » Thu Aug 07, 2008 08:59

Hi Renan,

What is the exact version of the compaq fortran compiler you are using?
It must be 6.6C, so if you have an older version you must update to 6.6C first.

Best regards,
Luis

renanbribeiro@yahoo.com.br
MOHID User
Posts: 26
Joined: Thu Jan 01, 1970 00:00
Location: Universidade Santa Cecília - Santos, Brazil

Postby renanbribeiro@yahoo.com.br » Thu Aug 07, 2008 19:26

Luis,

I was using the version 6.6, (without the c). I don't know what was the problem.

Now I got the Intel Fortran Compiler 10.1 and I build MohidWater.exe with success, following the wiki instructions. I made a model run only with hydrodinamic and it was OK :) .

Now, like i said, I would like to try to compile a exe to convert NetCDF (from NECP/NCAR) to HDF5. Could you help me?

But I don't have much experince...

Do you have the source files from ERA40toHDF5 Tool? Maybe it's a start.

Thanks,
Renan

administrator@.
Site Admin
Posts: 348
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Tecnico - Lisbon - Portugal
Contact:

Postby administrator@. » Tue Aug 12, 2008 09:33

Hi Renan,

I'll send you some examples soon.
Best regards,
Luis


Return to “MOHID Programming”

Who is online

Users browsing this forum: No registered users and 1 guest