Welcome, Guest
Username: Password: Remember me

TOPIC: Unknown error found in v7p2r0: artemis\breaking\cli_breaking.slf

Unknown error found in v7p2r0: artemis\breaking\cli_breaking.​slf 2 weeks 4 days ago #45685

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
While using the new Blue Kenue CLI COMMAND "TELEMAC" (see post #45661) on v7p2r0 example data, I came across one out of 510 SLF files that did not successfully load into Blue Kenue.

Upon debugging, I found that the "endianness" of that one file could not be determined.

Therefore, to help usability, I updated the Blue Kenue output to more clearly explain why that file does not successfully load. The next installer after 4 November 2024 will have this small improvement.

2024-11-04_ImprovedErrorMessage.png


Kindly... Alan
The administrator has disabled public write access.
The following user(s) said Thank You: Renault

Unknown error found in v7p2r0: artemis\breaking\cli_breaking.​slf 2 weeks 4 days ago #45687

  • Serrer
  • Serrer's Avatar
  • OFFLINE
  • Moderator
  • Posts: 720
  • Thank you received: 304
Interesting...
The error appears because the file cli_breaking.slf is NOT a slf file.
It's actually a Telemac boundary conditions file (ASCII file) that should have the extension ".cli"

FWIW: Although it's an industry standard, I've never been a fan of file extensions being used to determine a file's contents.
I always thought the use of "magic numbers" like under UNIX to be more robust.

But, it's good that you added a more verbose explanation.

Cheers... Martin
The administrator has disabled public write access.

Unknown error found in v7p2r0: artemis\breaking\cli_breaking.​slf 2 weeks 3 days ago #45688

  • a.barton
  • a.barton's Avatar
  • OFFLINE
  • Moderator
  • Posts: 683
  • Thank you received: 178
ha! that's too funny :silly: Thanks for taking a look at the file's contents!

File extensions vs. magic numbers. Yes, they are 2 different industry protocols for helping to filter/exclude file contents. The former is visible to a user while the latter is not immediately visible to a user but is visible to a program. Both approaches can be spoofed, for sure. Such as the case that you found of a CLI file masquerading as a SLF file.

At the end of the day, both protocols are used as a preliminary way to filter out (or filter in) a file (given a set of files). The actual program under consideration (in this case Blue Kenue) will determine if the file is "valid" or "invalid" when trying to load it.

For me, I like file extensions because I can easily see them and I'm not (personally) a fan of files without an extension because if I'm given a directory with 500 files without extensions, I wouldn't be able to easily know which files "belong" to which programs without using a program to help me...

Po-tay-toe... po-tah-toe...

Kindly... Alan
The administrator has disabled public write access.
Moderators: Serrer, a.barton

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