> On 26 Aug 2018, at 09:17, Christophe Geuzaine <[email protected]> wrote:
> 
> 
> Hi Max,
> 
> Indeed, it's part of the design of the solver interface: the model is loaded 
> for each phase of the computation (initialization, parameter checking and 
> actual run). When you just open a mesh file (with a post-processing view), it 
> gets read twice (init and check) which leads to 2 duplicate views. You could 
> either load a geometrical model, or (what we usually do) let the solver 
> perform the load: you can then decide what to do depending on the calculation 
> phase ("action").

PS : I've just added a simpler way to bypass the automatic model load/meshing - 
simply define the onelab variable "IsMetamodel". Cf. the updated solver.cpp and 
pend.cpp demos.


> 
> Christophe
> 
> 
> 
>> On 25 Aug 2018, at 17:37, Max Orok <[email protected]> wrote:
>> 
>> Thinking about the .opt file, of course it doesn't work the second time: the 
>> view is numbered differently. The other problem hopefully has a real cause!
>> 
>> On Sat, Aug 25, 2018 at 11:34 AM, Max Orok <[email protected]> wrote:
>> Here is your basic solver (it seems any solver will do) and a mesh file that 
>> shows the issue.
>> 
>> With the solver open, open the .msh file. There should be two duplicate 
>> views loaded into the GUI. 
>> In addition, the .opt file (to not open the view automatically) is ignored 
>> the second time it is loaded. 
>> 
>> Without the solver loaded (i.e. no run button in the gui) the duplicate 
>> views don't show up. 
>> I think the problem may be bound up in the database files; I had an old .db 
>> file that when loaded, did not have this problem.
>> 
>> On Sat, Aug 25, 2018 at 3:35 AM, Christophe Geuzaine <[email protected]> 
>> wrote:
>> 
>> Can you send an example?
>> 
>>> On 23 Aug 2018, at 22:48, Max Orok <[email protected]> wrote:
>>> 
>>> Hi everyone, 
>>> 
>>> On loading simulation results into the Gmsh GUI after running a C++ solver 
>>> from it, there are duplicates of each view loaded. It seems the solver is 
>>> running twice, the second time loading the views? Is there anyway to 
>>> disable this?
>>> 
>>> -- 
>>> Max Orok
>>> Summer Student
>>> www.mevex.com
>>> 
>>> 
>>> _______________________________________________
>>> gmsh mailing list
>>> [email protected]
>>> http://onelab.info/mailman/listinfo/gmsh
>> 
>> — 
>> Prof. Christophe Geuzaine
>> University of Liege, Electrical Engineering and Computer Science 
>> http://www.montefiore.ulg.ac.be/~geuzaine
>> 
>> Free software: http://gmsh.info | http://getdp.info | http://onelab.info
>> 
>> 
>> 
>> 
>> -- 
>> Max Orok
>> Summer Student
>> www.mevex.com
>> 
>> 
>> 
>> 
>> 
>> -- 
>> Max Orok
>> Summer Student
>> www.mevex.com
>> 
>> 
>> _______________________________________________
>> gmsh mailing list
>> [email protected]
>> http://onelab.info/mailman/listinfo/gmsh
> 
> — 
> Prof. Christophe Geuzaine
> University of Liege, Electrical Engineering and Computer Science 
> http://www.montefiore.ulg.ac.be/~geuzaine
> 
> Free software: http://gmsh.info | http://getdp.info | http://onelab.info

— 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine

Free software: http://gmsh.info | http://getdp.info | http://onelab.info


_______________________________________________
gmsh mailing list
[email protected]
http://onelab.info/mailman/listinfo/gmsh

Reply via email to