error in mesh creation
Hi @mafanasiev , here is what I get when trying to put the mesh together. I believe that I haven't changed much other than paths to files etc in this nb. It has been some time though and now I am definitely using the nightly version of Salvus.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
File salvus/mesh/layered_meshing/meshing_protocol/coarsening_policy/intralayer_vertical_refine.py:450, in salvus.mesh.layered_meshing.meshing_protocol.coarsening_policy.intralayer_vertical_refine.IntralayerVerticalRefine.basic_block()
File salvus/mesh/data_structures/mesh_block/mesh_block_utils.py:419, in salvus.mesh.data_structures.mesh_block.mesh_block_utils._smooth_three_dimensional_refinements()
ValueError: Smoothing refinements failed
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
Cell In[6], line 3
1 ## Generate the mesh
----> 3 mesh = lm.mesh_from_domain(
4 domain=d,
5 model=lm.MeshingProtocol(
6 layered_model,
7 intralayer_coarsening_policy=[
8 lm.IntralayerVerticalRefine(refinement_type="doubling"),
9 lm.IntralayerVerticalRefine(refinement_type="tripling"),
10 lm.IntralayerConstant(),
11 ],
12 interlayer_coarsening_policy=[
13 lm.InterlayerConstant(),
14 lm.InterlayerDoubling(),
15 ],
16 ),
17 mesh_resolution=sn.MeshResolution(reference_frequency=1.0),
18 )
20 mesh
File salvus/mesh/layered_meshing/detail/mesh_from_domain.py:1005, in salvus.mesh.layered_meshing.detail.mesh_from_domain.mesh_from_domain()
File salvus/mesh/layered_meshing/detail/mesh_from_domain.py:743, in salvus.mesh.layered_meshing.detail.mesh_from_domain.create_layered_mesh()
File salvus/mesh/layered_meshing/detail/mesh_from_domain.py:724, in genexpr()
File salvus/mesh/layered_meshing/detail/mesh_from_domain.py:687, in genexpr()
File salvus/mesh/layered_meshing/meshing_protocol/coarsening_policy/intralayer_detail.py:510, in salvus.mesh.layered_meshing.meshing_protocol.coarsening_policy.intralayer_detail.construct_mesh_block()
File salvus/mesh/layered_meshing/meshing_protocol/coarsening_policy/intralayer_vertical_refine.py:457, in salvus.mesh.layered_meshing.meshing_protocol.coarsening_policy.intralayer_vertical_refine.IntralayerVerticalRefine.basic_block()
TypeError: isinstance() argument 2 cannot be a parameterized generic