Skip to content
Snippets Groups Projects
Commit 53f6b095 authored by Pierre Augier's avatar Pierre Augier
Browse files

fluidsimfoam-multi-region-snappy: resource constant/triSurface/geom.stl.gz

parent e23f838d
No related branches found
No related tags found
1 merge request!89fluidsimfoam-multi-region-snappy
Pipeline #68220 failed
......@@ -36,7 +36,6 @@
"regionProperties",
]
internal_symlinks = {
"Allrun": "Allrun-parallel",
"system/leftSolid/fvSchemes": "../heater/fvSchemes",
"system/leftSolid/decomposeParDict": "../heater/decomposeParDict",
"system/rightSolid/fvSchemes": "../heater/fvSchemes",
......@@ -81,3 +80,11 @@
_helper_decompose_par_dict = None
_helper_turbulence_properties = None
_complete_params_block_mesh_dict = None
@classmethod
def _complete_params_with_default(cls, params, info_solver):
super()._complete_params_with_default(params, info_solver)
params.resources = (
"package-data(fluidsimfoam_multi_region_snappy.templates)/geom.stl.gz"
" -> constant/triSurface/geom.stl.gz"
)
......@@ -53,6 +53,7 @@
resource = Path(os.path.expandvars(resource)).expanduser()
context_manager = nullcontext
destination.parent.mkdir(exist_ok=True)
with context_manager(resource) as resource:
if resource.is_file():
shutil.copy(resource, destination)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment