Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Date format problem with result files run on linux

Date format problem with result files run on linux 6 years 5 months ago #30702

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi all,

I noticed that time series from result files create on linux are not in a format recognized by Blue Kenue:

-001/-1/-1 -1:-1:-1.000 0.120000
...

I use the defaut date formats:
ORIGINAL DATE OF TIME = 1900;1;1
ORIGINAL HOUR OF TIME = 0;0;0

The files can be opened with fudaa and python and has the correct time records (in seconds, not formatted).

Same model run on Windows doesn't give any format problem in Blue Kenue.

I assume it has to do with linux/unix encoding but have no further idea. Does someone have a trick?

Thanks in advance!

Best regards
PL

File Attachment:

File Name: ts3.txt
File Size: 2 KB
The administrator has disabled public write access.

Date format problem with result files run on linux 6 years 4 months ago #30709

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 304
Hi,
Can you post a small example slf file?
Cheers... Martin
The administrator has disabled public write access.

Date format problem with result files run on linux 6 years 4 months ago #30710

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi Martin,

Here it is.

Thanks for your help,
PL


File Attachment:

File Name: r2d.slf
File Size: 648 KB
The administrator has disabled public write access.

Date format problem with result files run on linux 6 years 4 months ago #30716

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi Pierre-Louis

As an idea, maybe linked to the config file (Big_endian/little endian)?

Regards
Christophe
The administrator has disabled public write access.

Date format problem with result files run on linux 6 years 4 months ago #30717

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi Christophe,

Thanks for your remark. It looks like the guys also used big endian type in the config:
www.pdc.kth.se/software/software/TELEMAC...ow/v7p1r1/index.html

However the following tag is missing, can it be that?
-ffixed-line-length-132

I also noticed that I can't chop (runSELAFIN.py - chop) large result files created on this cluster, but small files can be chopped... I haven't investigated that further but in case this can have something to do with this missing tag I can ask the support to recompile the program and see.

Kind regards
PL
The administrator has disabled public write access.

Date format problem with result files run on linux 6 years 4 months ago #30719

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

The tag --fixed-line-length-132 should be here if you plan to use long lines in your fortran files.
Telemac files are formated with short line (72 characters) so this tag is not mandatory.

What I saw an the description of the computer is your running on a Cray Machine...
I think the problem is more related to this particular computer. I know in previous version, there was specific keywords dedicated to those kind of computer...
I couldn't help you further on this problem as I never had an access to a cray machine :dry:

Regards
Christophe
The administrator has disabled public write access.

Date format problem with result files run on linux 6 years 4 months ago #30723

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

Here is a description of the cluster, for your information:
www.pdc.kth.se/hpc-services/computing-systems

I was running on Hartree Centre's cluster (Daresbury, enCORE) by the past and got similar date format issues. I don't know which kind of machine it was though.

PL
The administrator has disabled public write access.

Date format problem with result files run on linux 6 years 4 months ago #30730

  • josekdiaz
  • josekdiaz's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 161
  • Thank you received: 48
Hello,

I've noticed that this is a longstanding bug, since V7p1r0 at least, I thought it was related to something missing when compiling in Linux and I recall someone mentioning that it was fixed for v7p2rx...

Regards
The administrator has disabled public write access.
The following user(s) said Thank You: pilou1253

Date format problem with result files run on linux 6 years 4 months ago #30732

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 304
Hi all,

Except for the messed up date field this appears to be a bog standard Big Endian
single precision file.

The attached image shows the HEX contents of the 6 4byte date fields.
There is no way that these values represent 1990;1;1;0;0;0
I therefore conclude that there is something messed up in the code that writes the slf file header and it's a TELEMAC bug.

Cheers... Martin

dateStamp.png
The administrator has disabled public write access.

Date format problem with result files run on linux 6 years 4 months ago #30733

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 304
Is it possible that these variables are not explicitly initialized and therefore just contain random values under some compilers?
I ask because I just came across another slf file that user
"EGleirscher" sent to me 15 April 2016 with the same problem.

The title of the post is "Blue Kenue timeline problem v7p1r0 in parallel"

This file had equally strange but different values.
The administrator has disabled public write access.
The following user(s) said Thank You: pilou1253
  • Page:
  • 1
  • 2
Moderators: Serrer, a.barton

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.