Skip to content

Free-field input: data after field 10 on one line is ERROR 1003, not dropped - #320

Open
Valladarex wants to merge 1 commit into
MystranSolver:devfrom
Valladarex:pr/free-field
Open

Valladarex wants to merge 1 commit into
MystranSolver:devfrom
Valladarex:pr/free-field

Conversation

@Valladarex

Copy link
Copy Markdown

Fixes #319.

One commit, in Source/LK1/L1A/INPUT_FILE_MECHANICS.f03 (FFIELD).

  • The fix: non-blank data after the 10th field of a free-field line is now fatal ERROR 1003, naming the line. Trailing empty fields (,,,) are still accepted.
  • Why an error, not a continuation: readers handle this differently, and an error is the choice that never gives a different model without a word.
  • Note: the message is printed once for each pass that reads the line, as ERROR 1002 already is.

Test: MYSTRAN_Validation MystranSolver/MYSTRAN_Validation#36, free_field_more_than_10_fields.bdf: that PSHELL line in a small static deck.

  • The check is that no displacements are written.
  • On dev the deck runs and writes them. With this PR it stops with ERROR 1003.
  • The suite cannot check message text, so the check passes on any stop. That ERROR 1003 is the stop was checked in the F06: it names the PSHELL line, and the CQUAD4 line's trailing empty fields pass.

Validation suite: with both PRs, 1 failure of 3,256 checks, the same one current dev has without them ("mitc4 thermal strain free rectangle cylinder"). The new check passes.

…dropped

FFIELD converted a free-field line to fields 1-10 and stopped at the 10th
comma, so values after it were dropped without a message:
"PSHELL,1,1,.1,1,,1,,,,,,1" ran as if the last value were blank, while a
reader that treats the extra fields as a continuation gives a different
model. Non-blank data after field 10 is now fatal ERROR 1003 naming the
line; trailing empty fields (",,,") are still accepted.

Test (MYSTRAN_Validation): free_field_more_than_10_fields.bdf, that PSHELL
line in a small static deck; the run must stop and write no displacements.
On current dev it runs and writes them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant