From d1a3582c183b776688eec90b259a1a1dd4702eae Mon Sep 17 00:00:00 2001 From: Timothy Nunn Date: Wed, 11 Dec 2024 16:10:32 +0000 Subject: [PATCH] Detect string variable types in the Python-Fortran dicts --- scripts/create_dicts.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/create_dicts.py b/scripts/create_dicts.py index fc9bc1ed02..6fbe5b1d25 100755 --- a/scripts/create_dicts.py +++ b/scripts/create_dicts.py @@ -15,6 +15,7 @@ This ultimately provides Process Python with the ability to access variable information in the Process Fortran source code. """ + import re import logging import argparse @@ -707,7 +708,7 @@ def dict_var_type(): DICT_VAR_TYPE['beta'] = 'real_variable' """ di = {} - regexp = r"call parse_(real|int)_(array|variable)\(" + regexp = r"call parse_(real|int|string)_(array|variable)\(" lines = grep(SOURCEDIR + "/input.f90", regexp) for line in lines: args = line.split("(")[1]