Closed AndreaCodd closed 3 years ago
Can you be a bot more specific? Example?
The output from
dom = finley.ReadGmsh("Kalgoorlie_Gravity_201x338b.msh", numDim=3)
w_e = escript.Scalar(0, escript.Function(dom))
w_e.setTaggedValue("DataArea",1)
w_e.expand()
print('w_e')
print(w_e)
is
w_e Summary: inf=0 sup=0 data points=1020688
What does dom.showTagNames()
say?
Air, Base, BottomFace, DataArea, PaddingAir, PaddingBase, TopFace
You can get the tag number by dom.getTag('DataArea')
and check if this is actually being used escript.Function(dom).getListOfTags()
.
dom.showTagNames(): Air, Base, BottomFace, DataArea, PaddingAir, PaddingBase, TopFace dom.getTag('DataArea'): 1 escript.Function(dom).getListOfTags(): [3] dom.isValidTagName('DataArea'): True
'escript.Function(dom).getListOfTags(): [3]' tells you that there are no elements in the mesh with 'DataArea'=1 tag.
The mesh and code worked fine last April.
it could be a problem with the gmsh file version?
Ok. I copied an old mesh file from my work PC. and it worked. so I suppose I need to use an older version of gmsh.
I believe that you can set the format version when you generate the msh file. it should be 2.2 or lower. Also see #4
There is a problem with setTaggedValue. It does not seem to be working.