diff --git a/lib/damask/solver/marc.py b/lib/damask/solver/marc.py index f413574c3..bdd30cfa1 100644 --- a/lib/damask/solver/marc.py +++ b/lib/damask/solver/marc.py @@ -87,6 +87,10 @@ class Marc(Solver): if len(release) == 0: release = self.version(rootRelation) + if release not in self.releases: + raise Exception("Unknown MSC.Marc Version %s"%release) + + damaskEnv = damask.environment.Environment(rootRelation) user = os.path.join(damaskEnv.relPath('code/'),'DAMASK_marc') # might be updated if special version is found (usually symlink)