I was trying to install the parameter-GUI follow the ASPECT munal. I have generated the ‘parameter-GUI’ executable but I did not have the ‘aspect-gui’ script which was mentioned in the munal.
So, I have no idea about How to edit parameter files with parameter-GUI. Because when I open the executable I found that the software can only open the .xml files. But the parameter files which be used to start an ASPECT model are all .prm files.
Hi Miao,
were you able to create the aspect-gui following Timo’s suggestions?
@cgw0814: You did nothing wrong, but I think you found a bug in the parameter gui that we did not know. I opened a pull request to fix it (see https://github.com/dealii/parameter_gui/pull/21). If you want to test it yourself you can update your parameter gui once the pull request is merged, and I also attach a patch that shows how to modify the parameter gui yourself if you do not want to wait:
diff --git a/xml_parameter_reader.cpp b/xml_parameter_reader.cpp
index a5b6b6d..fc2e5b4 100644
--- a/xml_parameter_reader.cpp
+++ b/xml_parameter_reader.cpp
@@ -217,7 +217,7 @@ namespace dealii
QRegExp rx_string("\\b(Anything|FileName|DirectoryName|Selection|List|MultipleSelection)\\b"),
rx_integer("\\b(Integer)\\b"),
rx_double("\\b(Float|Floating|Double)\\b"),
- rx_bool("\\b(Selection true|false)\\b");
+ rx_bool("\\b(Bool)\\b");
// store the type "Anything" or "Filename" as a QString
if (rx_string.indexIn (pattern_description) != -1)
I really appreciate for your help. When I enter the command cmake -D PARAMETER_GUI_EXECUTABLE=/mnt/parameter_gui-master/bin/parameter_gui .
screen showed
– Configuring done
– Generating done
– Build files have been written to: /mnt/parameter_gui-master
but I did not find the script aspect-gui in “/mnt/parameter_gui-master”.
Thanks for your reply. I have create the aspect-gui. The only trouble is that it can only open xml files like @cgw0814 said. But the SECTION parameter like “Boundary composition model, Geometry model, Gravity model…etc” are present in the template.
Just to be sure, you did this in the ASPECT build directory, right? Did ASPECT report that it found the gui (you can post the detailed.log in the folder)?
Thanks for your suggestion. I have find aspect-gui in home/ubuntu/bin/. I can open it with the parameterGUI and it shown the temp.xml*. It seems to be no problem.
The only trouble is that it can only open xml files like @cgw0814 said. The difference with @cgw0814 is that the SECTION parameter like “Boundary composition model, Geometry model, Gravity model…etc” are present in the template.
if you want to modify and save an existing .prm file. You can currently not open an existing .prm file directly from the program, and it would be very complicated to implement that. The reasons are complex, if you want to work on this, I can give you further advice, but the two examples that I wrote above should allow you to do everything you need (create a new .prm file, or modify an existing .prm file). You just need to close the aspect-gui and reopen it, if you want to read a new file.
@cgw0814: You are right in your last comment, every default parameter is not written in the .prm file. This is on purpose, because if the parameter is not in the file, ASPECT will use its default value. I.e. there is no reason for you to write
Use year in output instead of seconds = true
because ASPECT will assume it anyway if you do not set it to false. If we would write all default values, the .prm file would have hundreds of lines.