From 60ae4d6ea296f4802fe41765e432dde79f8262d4 Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Tue, 12 Nov 2024 08:50:38 +0100 Subject: [PATCH] Fix to plot summary vectors with operations --- src/plopm/utils/initialization.py | 3 ++- src/plopm/utils/vtk.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plopm/utils/initialization.py b/src/plopm/utils/initialization.py index 9f05183..a0993dd 100755 --- a/src/plopm/utils/initialization.py +++ b/src/plopm/utils/initialization.py @@ -326,7 +326,8 @@ def is_summary(dic): print(summary) sys.exit() for name in dic["vrs"]: - if name.upper() in summary + dic["smass"]: + names = name.split(" ") + if names[0].upper() in summary + dic["smass"]: return True if dic["printv"] == 1: sys.exit() diff --git a/src/plopm/utils/vtk.py b/src/plopm/utils/vtk.py index 28e4dc7..3188140 100644 --- a/src/plopm/utils/vtk.py +++ b/src/plopm/utils/vtk.py @@ -38,7 +38,7 @@ def make_vtks(dic): args=f"{dic['flow']} --version", stdout=PIPE, shell=True ) as process: dic["flow_version"] = str(process.communicate()[0])[7:-3] - if dic["flow_version"] == "2024.04": + if dic["flow_version"] == "2024.10": make_dry_deck(dic) else: os.system(f"cp {dic['deck']}.DATA {dic['deck']}_DRYRUN.DATA")