Compilation question

Information about Programming in the MOHID Framework
yuebo840606@gmail.com
MOHID User
Posts: 22
Joined: Thu Jan 01, 1970 00:00

Compilation question

Postby yuebo840606@gmail.com » Wed Jun 10, 2009 14:32

Hi,
Some errors appeared when I compliled with cvf .I have installed CVF6.6 and CVF 6.6C.I have followed the compilaton steps that MOHID wiki offers.But,to my dissappointed ,I Obtained too many errors,for example, as follows:
--------------------Configuration: mohidwater - Win32 Debug--------------------
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidBase2\\ModuleHorizontalGrid.f90(2062): Could not find the file proj4.mod.
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidBase1\\ModuleFunctions.f90(6934): Could not find the file proj4.mod.
Compiling Fortran...
ModuleSequentialAssimilation.i90
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(83) : Error: Name in only-list does not exist. [COPYWATERLEVEL]
CopyWaterLevel, CopyHorizontalVelocity, &
---------------------------------------^
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(83) : Error: Name in only-list does not exist. [COPYHORIZONTALVELOCITY]
CopyWaterLevel, CopyHorizontalVelocity, &
-------------------------------------------------------^
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(84) : Error: Name in only-list does not exist. [COPYVERTICALVELOCITY]
CopyVerticalVelocity, CopyWaterFluxes, &
---------------------------------------^
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(84) : Error: Name in only-list does not exist. [COPYWATERFLUXES]
CopyVerticalVelocity, CopyWaterFluxes, &
-------------------------------------------------------------^
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(85) : Error: Name in only-list does not exist. [SETWATERLEVEL]



Besides,at the end of the Compilation,errors like follows:

D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(1183) : Warning: Fortran 95 requires a LOGICAL data type in this context. [CHECK_HYDRODYNAMIC_PROPERTY]
if (Check_Hydrodynamic_Property(NewProperty%ID%IDNumber)) then
------------^
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(1183) : Error: A logical data type is required in this context. [CHECK_HYDRODYNAMIC_PROPERTY]
if (Check_Hydrodynamic_Property(NewProperty%ID%IDNumber)) then
------------^
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(1195) : Error: This name does not have a type, and must have an explicit type. [CHECK_WATER_PROPERTY]
else if (Check_Water_Property(NewProperty%ID%IDNumber)) then
-----------------^
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(1195) : Warning: Fortran 95 requires a LOGICAL data type in this context. [CHECK_WATER_PROPERTY]
else if (Check_Water_Property(NewProperty%ID%IDNumber)) then
-----------------^
D:\\MOHIDSourceCode\\SourceCode_v4.9.1_10October2008\\MohidWater\\ModuleSequentialAssimilation.f90(1195) : Error: A logical data type is required in this context. [CHECK_WATER_PROPERTY]
else if (Check_Water_Property(NewProperty%ID%IDNumber)) then


can someone help me ?
yours ,huyuebo.

luis_at_mohid.com
MOHID Developer
Posts: 553
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Técnico - Technical University of Lisbon
Contact:

Postby luis_at_mohid.com » Wed Jun 10, 2009 16:25

Hi Huyuebo,

Please remove the ModuleSequentialAssimilation.f90 from the project. It has optional directives, and only then it can be attached to the Fortran project.

Let me know if it worked,
Luis

yuebo840606@gmail.com
MOHID User
Posts: 22
Joined: Thu Jan 01, 1970 00:00

Postby yuebo840606@gmail.com » Thu Jun 11, 2009 08:48

Thanks,luis

I removed the ModuleSequentialAssimilation.f90 from the project.I don't know whether it can impact the simulation,but I acquired the case as follows:

--------------------Configuration: mohidwater - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'D:\\MOHIDSourceCode\\mohidwater\\Debug\\ModuleSequentialAssimilation.mod'
Linking...
LINK : warning LNK4098: defaultlib \"libc.lib\" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4049: locally defined symbol \"_H5F_FLAGS\" imported
LINK : warning LNK4049: locally defined symbol \"_H5S_FLAGS\" imported
LINK : warning LNK4049: locally defined symbol \"_PREDEFINED_TYPES\" imported
LINK : warning LNK4049: locally defined symbol \"_H5P_FLAGS\" imported
LINK : warning LNK4049: locally defined symbol \"_H5T_FLAGS\" imported
LINK : warning LNK4049: locally defined symbol \"_H5G_FLAGS\" imported

mohidwater.exe - 0 error(s), 8 warning(s)


I don't know the reasons of the errors ,but I am sure that I observed the steps that MOHID wiki offers.Can I sustain ? Sorry to bother you again.

yours ,huyuebo

luis_at_mohid.com
MOHID Developer
Posts: 553
Joined: Thu Jan 01, 1970 00:00
Location: Instituto Superior Técnico - Technical University of Lisbon
Contact:

Postby luis_at_mohid.com » Thu Jun 11, 2009 10:48

Hi Huyuebo,

Everything is fine. These are just normal warnings related with HDF5 libraries and conflicts with use of \"libc.lib\". Don't worry, these warnings don't influence at all the model.

Best regards,
Luis

yuebo840606@gmail.com
MOHID User
Posts: 22
Joined: Thu Jan 01, 1970 00:00

Postby yuebo840606@gmail.com » Thu Jun 11, 2009 13:23

Thanks very much,luis.

yours,huyuebo.


Return to “MOHID Programming”

Who is online

Users browsing this forum: No registered users and 1 guest