-
- Downloads
Changed behaviour of DefineConstant & co for better symmetry between GetDP/Gmsh
and Python onelab clients. WARNING WARNING WARNING: This is a major change -- all our onelab-enabled .geo and .pro files will need to be (slightly...) modified. What's new: 1. The name of a onelab variable (in the onelab database) is no more constructed from the name of the corresponding GetDP/Gmsh variable. One now needs to specify the onelab name explicitely, using the "Name" attribute. The "Name" is the actual name of the parameter in the onelab database, i.e., it also includes the path. This makes the "Path" attribute obsolete (it has no effect anymore). The "Legend" attribute can still be used (and it can be useful in edge cases, e.g. when you want a "/" in the name of a onelab paramater), but in most cases it's not necessary. 2. When a DefineConstant[] & co is used and no Name is given (e.g. DefineConstant[a=2]), no onelab parameter is created. This allows to provide default values to internal parameters without polluting the database. Why did we change? 1. The new syntax matches what we do in Python, where specifying a name is mandatory (there's no way around this in Python, as onelab cannot guess the name of a Python variable to which a onelab parameter value will be assigned). The change will prevent common mistakes where two parameters with the same label actually correspond to 2 different onelab parameters, due to a change in local getdp/gmsh variable name (which would change the onelab name automatically) 2. The new syntax allows to nicely decouple onelab parameters from internal variables with default values, that we don't want in the onelab database.
Showing
- Common/GmshMessage.cpp 22 additions, 2 deletionsCommon/GmshMessage.cpp
- Fltk/onelabGroup.cpp 2 additions, 1 deletionFltk/onelabGroup.cpp
- Parser/Gmsh.tab.cpp 2199 additions, 2187 deletionsParser/Gmsh.tab.cpp
- Parser/Gmsh.y 9 additions, 6 deletionsParser/Gmsh.y
- contrib/mobile/iOS/Onelab/files/magnet/Magnetostatics.pro 20 additions, 14 deletionscontrib/mobile/iOS/Onelab/files/magnet/Magnetostatics.pro
- contrib/mobile/iOS/Onelab/files/magnet/magnet.geo 5 additions, 10 deletionscontrib/mobile/iOS/Onelab/files/magnet/magnet.geo
- contrib/mobile/iOS/Onelab/files/magnet/magnet.pro 5 additions, 7 deletionscontrib/mobile/iOS/Onelab/files/magnet/magnet.pro
- contrib/mobile/iOS/Onelab/files/magnet/magnet_data.pro 2 additions, 4 deletionscontrib/mobile/iOS/Onelab/files/magnet/magnet_data.pro
- contrib/mobile/iOS/Onelab/files/pmsm/BH.pro 50 additions, 22 deletionscontrib/mobile/iOS/Onelab/files/pmsm/BH.pro
- contrib/mobile/iOS/Onelab/files/pmsm/machine_magstadyn_a.pro 598 additions, 445 deletionscontrib/mobile/iOS/Onelab/files/pmsm/machine_magstadyn_a.pro
- contrib/mobile/iOS/Onelab/files/pmsm/pmsm.geo 9 additions, 8 deletionscontrib/mobile/iOS/Onelab/files/pmsm/pmsm.geo
- contrib/mobile/iOS/Onelab/files/pmsm/pmsm.pro 50 additions, 76 deletionscontrib/mobile/iOS/Onelab/files/pmsm/pmsm.pro
- contrib/mobile/iOS/Onelab/files/pmsm/pmsm_8p_circuit.pro 4 additions, 5 deletionscontrib/mobile/iOS/Onelab/files/pmsm/pmsm_8p_circuit.pro
- contrib/mobile/iOS/Onelab/files/pmsm/pmsm_data.geo 39 additions, 21 deletionscontrib/mobile/iOS/Onelab/files/pmsm/pmsm_data.geo
- contrib/mobile/iOS/Onelab/files/pmsm/pmsm_rotor.geo 10 additions, 9 deletionscontrib/mobile/iOS/Onelab/files/pmsm/pmsm_rotor.geo
- contrib/mobile/iOS/Onelab/files/pmsm/pmsm_stator.geo 5 additions, 3 deletionscontrib/mobile/iOS/Onelab/files/pmsm/pmsm_stator.geo
- contrib/onelab/python/coin.geo 2 additions, 3 deletionscontrib/onelab/python/coin.geo
- demos/indheat.geo 11 additions, 11 deletionsdemos/indheat.geo
- tutorial/t3.geo 1 addition, 1 deletiontutorial/t3.geo
- utils/api_demos/simpleBeam.geo 6 additions, 6 deletionsutils/api_demos/simpleBeam.geo
Loading
Please register or sign in to comment