Read table from file

Numerical methods and mathematical models of Elmer
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Read table from file

Post by raback »

Ok, that's a problem. I could look at the parser. -Peter
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Read table from file

Post by raback »

Hi

On second thought. Maybe easier to modify ElmerGUI.

The newline is changed to semicolon at line 378 of $ELMERSRC/ElmerGUI/Application/src/dynamiceditor.cpp
q.replace( '\n', ';' );

Commenthing this away would fix the workflow.

The downside is that after editing the view to the results is not as pretty.

Any preferences?

-Peter
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Read table from file

Post by mzenker »

Hmmm, I would think spontaneously that it may be the "cleaner" way to fix the parser.
But I have no idea how much work that would be, and I am not familiar enough with all the possible cases of sif parsing.
As long as the edit field in the GUI can be viewed and edited normally (with a scrollbar if it is multiline, just as a free text field?), modifying the GUI as you wrote should also be OK.

At the end, the developper decides... ;)

Matthias
raback
Site Admin
Posts: 4812
Joined: 22 Aug 2009, 11:57
Antispam: Yes
Location: Espoo, Finland
Contact:

Re: Read table from file

Post by raback »

Hi

After considering the parser we decided to take the easy route. The GUI should in the future not enforce the semicolons.

-Peter
Post Reply