Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion flow360/component/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@
wrapstring,
)
from flow360.component.volume_mesh import VolumeMeshV2
from flow360.exceptions import Flow360FileError, Flow360ValueError, Flow360WebError
from flow360.exceptions import (
Flow360ConfigError,
Flow360FileError,
Flow360ValueError,
Flow360WebError,
)
from flow360.log import log
from flow360.plugins.report.report import get_default_report_summary_template
from flow360.version import __solver_version__
Expand Down Expand Up @@ -1683,6 +1688,12 @@ def run_case(
Case | Draft
The case asset or the draft if `draft_only` is True.
"""

if interpolate_to_mesh is not None and fork_from is None:
raise Flow360ConfigError(
"Interpolation to mesh is only supported when forking from a case."
)

self._check_initialized()
case_or_draft = self._run(
params=params,
Expand Down