[Gmsh] Can you delete the variables created in the GUI menu?

Marco Antolovic marco_antolovic at yahoo.it
Fri Oct 30 15:28:14 CET 2020

Hi all,
Is there a way to delete a variable that you created in the GUI menu when you reload the script?
I'll try to explain my question with this example:
 nr_dielectric_groups = DefineNumber[ 4, Min 1, Max 2000, Step 1, Name " Dielectric parameters/Nr. of dielectric groups" ];

For i In {0:nr_dielectric_groups-1}    dielectric_thickness(i) = DefineNumber[ 550, Min 1, Max 2000, Step 1, Name Sprintf(" Dielectric parameters/ Dielectric thickness %g", i+1) ];EndFor
when you first start the script dielectric_thickness() will be a vector of dimension four and you will see four dielectric_thickness variables in the menu.
However if I set nr_dielectric_groups=2 the menu will still show four dielectric_thickness variables. Is there a way to delete excess variables from the menu?
Many thanks,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://onelab.info/pipermail/gmsh/attachments/20201030/27833eff/attachment.html>

More information about the gmsh mailing list