Restructuring of parameters associated with components #333
Replies: 1 comment 4 replies
-
Hi, I have been using the parsMigrate on the baryonicPhysicsConstrained.xml file and it worked (the only change occurred at the outputTimes part). Now I'm trying to launch the new file, but I have an error that I attach: What is the problem? Are there other properties that need to be fixed? |
Beta Was this translation helpful? Give feedback.
-
The latest revsion, ce515f9, makes a significant change to the structure of parameter files - specifically where parameters directly used by "components" should be placed.
For example, if your parameter file previously selected the
standard
black hole component, and set the black hole see mass as follows:it would need to change to the following to work with the latest revision:
i.e. the seed mass parameter is now a sub-parameter, and must appear inside the
componentBlackHole
element. Also, the names of many such parameters have been altered (as in this example) for improved consistency.This is part of a longer term plan to refactor the way in which the components are structured within Galacticus to make the system more flexible.
There is an automated tool which can update your parameter file to work with this latest version of the code. For example, if you have a parameter file called
myParameters.xml
you can update it using:which will create the file
myParametersNew.xml
with the relevant parameters renamed and relocated. This script is somewhat experimental (it was recently overhauled to make use ofgit
history to help in figuring out which parameters need to be updated). So, if you run into any problems using it, let us know.Beta Was this translation helpful? Give feedback.
All reactions