ElmerGUI: wrong solver specific option shown

Clearly defined bug reports and their fixes
Post Reply
tomatoma
Posts: 12
Joined: 12 Feb 2016, 23:04
Antispam: Yes

ElmerGUI: wrong solver specific option shown

Post by tomatoma »

Hi,

when clicking on Model -> Equation -> "Add" or on an existing equation
then selecting the tab "Heat Equation" or "SaveScalars"
and then "Edit Solver Settings"
and then selecting the tab "Solver specific option",
the tab shows the content of the solver specific option of the solver that is just before "Heat Equation" or "SaveScalars" respectively.

So, instead of showing the solver specific option of the "Heat Equation", the solver specific option of the "FluxSolver" "FluxSolver" procedure are shown.
Instead of showing the solver specific option of the "SaveScalars", the solver specific option of the "SaveData" "SaveLine" procedure are shown.

Windows 10,
today's nightly build or less recent one's:

MAIN: Version: 9.0 (Rev: Release, Compiled: 2022-02-16)
MAIN: Running one task without MPI parallelization.
MAIN: Running with just one thread per task.
MAIN: Lua interpreter linked in.


Directory C:\ElmerFEM-gui-nompi-Windows-AMD64\share\ElmerGUI\edf
coilsolver.xml
edf.xml
egini.xml
egmaterials.xml
electrostatics.xml
fluxsolver.xml
heatequation.xml
helmholtz.xml
linearelasticity.xml
list.txt
magnetodynamics.xml
magnetodynamics2d.xml
mc.ini
meshdeform.xml
navier-stokes.xml
resultoutput.xml
saveline.xml
savescalars.xml
statcurrent.xml

Thanks,
Matteo
Rich_B
Posts: 136
Joined: 24 Aug 2009, 20:18

Re: ElmerGUI: wrong solver specific option shown

Post by Rich_B »

Hello,

This issue has been around a while, without much notice. Thanks for posting this in bug reports.

A few more comments:
- If you load an old version of Elmer and ElmerGUI (like ten years old), the same crossed menus behavior occurs, so this is not new.
- The crossed menus happen after saving the project, closing and reopening ElmerGUI, and reloading the project.
- Crossed menus seem to happen most often with Save Scalars and Save Line.
- The crossed menus don't always get crossed up, which is pretty frustrating, you can't just say 'it always happens'.

A work around is to always create new ElmerGUI projects. Set your options for Save Scalars and Save Line during the creation process and the options will appear properly in the .sif file. Then go ahead and save and reload your project, knowing you probably won't be able to edit the settings of Save Scalars and Save Line, but the settings will still be okay in the generated .sif file.

Rich.
tomatoma
Posts: 12
Joined: 12 Feb 2016, 23:04
Antispam: Yes

Re: ElmerGUI: wrong solver specific option shown

Post by tomatoma »

Hi Rich,

thanks for your reply.
I noticed too that sometimes the menu are crossed and sometimes they are not, but I couldn't find a rule.

Best regards,
Matteo
Rich_B
Posts: 136
Joined: 24 Aug 2009, 20:18

Re: ElmerGUI: wrong solver specific option shown

Post by Rich_B »

Hello,

There is a PR that addresses this issue. Download and install the precompiled binaries, and the issue is fixed. Any installer dated 08 March 2022 or newer will work.

Thanks to Saeki for this fix!

Rich.
Post Reply