256 characters is supported

MOHID Water forum. Questions and discussion around MOHID Water
anamartin98@gmail.com
MOHID User
Posts: 23
Joined: Thu Jan 01, 1970 00:00

256 characters is supported

Postby anamartin98@gmail.com » Fri Jun 18, 2010 09:45

Hi
I have a problem executing a simulation forced only by wind.
The error is like this:

------INTERFACE SEDIMENT-WATER-----
Num of properties : 0

Maximum of 256 characters is supported.
UNITS : N/m2 stress X
FILE_IN_TIME : 0.mputed wind stress X
Nbeginproperty> : 0
DESCRIPTION : computeress Y
REMAIN_CONSTANT : 0ONE
INITIALIZATION_METHOD :
<end_rugosity> : 0.0025
File : D:\\Kingston\\MOHID_pruebas\\GCjun2\\VientoGC\\data\\InterfaceWaterAir_1.dat
Line : 1
ModuleEnterdata - ConstructEnterdata - ERR05

D:\\Kingston\\MOHID_pruebas\\GCjun2\\VientoGC\\exe>pause
Presione una tecla para continuar...

My InterfaceWaterAir_1.dat file is this:

<beginproperty>
NAME : wind stress X
UNITS : N/m2
DESCRIPTION : computed wind stress X
DEFAULTVALUE : 0.
FILE_IN_TIME : NONE
REMAIN_CONSTANT : 0
TIME_SERIE : 0
<endproperty>

<beginproperty>
NAME : wind stress Y
UNITS : N/m2
DESCRIPTION : computed wind stress Y
DEFAULTVALUE : 0.
FILE_IN_TIME : NONE
REMAIN_CONSTANT : 0
TIME_SERIE : 0
<endproperty>

<begin_rugosity>
INITIALIZATION_METHOD : CONSTANT
DEFAULTVALUE : 0.0025
<end_rugosity>

Any idea?

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 » Tue Jun 29, 2010 12:38

Hi Ana,

Can you send the file with the problem to me? Do you have tabs in your file?

Please remove them or whites spaces that make a line in the file with more than 256 characters which is the limit in a MOHID data file.

Cheers,
Luis

anamartin98@gmail.com
MOHID User
Posts: 23
Joined: Thu Jan 01, 1970 00:00

Postby anamartin98@gmail.com » Fri Jul 02, 2010 12:27

Hi Luis

I checked the longitude of the lines, I hadn't any tab, I did lots of senseless tryings like removing the decimal dot in the DEFAULTVALUE zero values, changing the order of the blocks in the file, ....
I finally created a new file and it correctly run

Perhaps it could be some type of file corruption that was not visible in the text editor (notepad++)? Don't know

The 'corrected' file is:

<begin_rugosity>
INITIALIZATION_METHOD : CONSTANT
DEFAULTVALUE : 0.0025
<end_rugosity>
<beginproperty>
NAME : wind stress X
UNITS : N/m2
DESCRIPTION : fuerza viento calculada
DEFAULTVALUE : 0
REMAIN_CONSTANT : 0
<endproperty>
<beginproperty>
NAME : wind stress Y
UNITS : N/m2
DESCRIPTION : fuerza viento calculada
DEFAULTVALUE : 0
REMAIN_CONSTANT : 0
<endproperty>

do you see any difference between this one and the previous file that could have lead to the error? Anyway, it's solved


Thank you
Ana


Return to “MOHID Water”

Who is online

Users browsing this forum: No registered users and 4 guests