ADflow  v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
Variables
autoEditReverseFast Namespace Reference

Variables

string EXT = "_fast_b.f90"
 
 DIR_ORI = sys.argv[1]
 
 DIR_MOD = sys.argv[2]
 
 patt_modules = re.compile(r"(\s*use\s*\w*)(_b)\s*")
 
 patt_module = re.compile(r"\s*module\s\w*")
 
 patt_module_start = re.compile("(\s*module\s)(\w*)(_b)\s*")
 
 patt_module_end = re.compile("(\s*end module\s)(\w*)(_b)\s*")
 
list del_patterns
 
 patt_pushcontrol1b = re.compile(r"(\s*call pushcontrol1b\()(.*)\‍)")
 
 patt_popcontrol1b = re.compile(r"(\s*call popcontrol1b\()(.*)\‍)")
 
 patt_subroutine = re.compile(r"\s*subroutine\s\w*")
 
 patt_subend = re.compile(r"\s*end\s*subroutine")
 
 patt_comment = re.compile(r"\s*!.*")
 
 patt_inttype = re.compile(r"\s*integer\*4\s\w*")
 
list useful_modules
 
list FILE_IGNORE
 
 file_object_ori = open(os.path.join(DIR_ORI, f), "r")
 
bool isModule = False
 
bool hasSubroutine = False
 
 line = line.lower()
 
 f = f.replace("_b", "_b")
 
 file_object_mod = open(os.path.join(DIR_MOD, f), "w")
 
bool addedModule = False
 
bool inSubroutine = False
 
 m = patt_modules.match(line)
 
bool found = False
 
 num = m.group(2)
 

Detailed Description

autoEdit - A Python tool to automatically edit a set of files
           according to the specified user rules:
G. Kenway

Variable Documentation

◆ addedModule

bool autoEditReverseFast.addedModule = False

Definition at line 98 of file autoEditReverseFast.py.

◆ del_patterns

list autoEditReverseFast.del_patterns
Initial value:
1 = [
2  re.compile(r"(\s*call pushreal8)"),
3  re.compile(r"(\s*call popreal8)"),
4  re.compile(r"(\s*call pushinteger4)"),
5  re.compile(r"(\s*call popinteger4)"),
6 ]

Definition at line 24 of file autoEditReverseFast.py.

◆ DIR_MOD

autoEditReverseFast.DIR_MOD = sys.argv[2]

Definition at line 17 of file autoEditReverseFast.py.

◆ DIR_ORI

autoEditReverseFast.DIR_ORI = sys.argv[1]

Definition at line 16 of file autoEditReverseFast.py.

◆ EXT

string autoEditReverseFast.EXT = "_fast_b.f90"

Definition at line 14 of file autoEditReverseFast.py.

◆ f

autoEditReverseFast.f = f.replace("_b", "_b")

Definition at line 92 of file autoEditReverseFast.py.

◆ FILE_IGNORE

list autoEditReverseFast.FILE_IGNORE
Initial value:
1 = [
2  "adjointExtra_fast_b.f90",
3  "BCData_fast_b.f90",
4  "oversetUtilities_fast_b.f90",
5  "zipperIntegrations_fast_b.f90",
6  "actuatorRegion_fast_b.f90",
7 ]

Definition at line 56 of file autoEditReverseFast.py.

◆ file_object_mod

autoEditReverseFast.file_object_mod = open(os.path.join(DIR_MOD, f), "w")

Definition at line 95 of file autoEditReverseFast.py.

◆ file_object_ori

autoEditReverseFast.file_object_ori = open(os.path.join(DIR_ORI, f), "r")

Definition at line 67 of file autoEditReverseFast.py.

◆ found

bool autoEditReverseFast.found = False

Definition at line 116 of file autoEditReverseFast.py.

◆ hasSubroutine

bool autoEditReverseFast.hasSubroutine = False

Definition at line 78 of file autoEditReverseFast.py.

◆ inSubroutine

bool autoEditReverseFast.inSubroutine = False

Definition at line 102 of file autoEditReverseFast.py.

◆ isModule

bool autoEditReverseFast.isModule = False

Definition at line 77 of file autoEditReverseFast.py.

◆ line

string autoEditReverseFast.line = line.lower()

Definition at line 80 of file autoEditReverseFast.py.

◆ m

autoEditReverseFast.m = patt_modules.match(line)

Definition at line 114 of file autoEditReverseFast.py.

◆ num

autoEditReverseFast.num = m.group(2)

Definition at line 128 of file autoEditReverseFast.py.

Referenced by genmmd(), and mmdnum().

◆ patt_comment

autoEditReverseFast.patt_comment = re.compile(r"\s*!.*")

Definition at line 34 of file autoEditReverseFast.py.

◆ patt_inttype

autoEditReverseFast.patt_inttype = re.compile(r"\s*integer\*4\s\w*")

Definition at line 35 of file autoEditReverseFast.py.

◆ patt_module

autoEditReverseFast.patt_module = re.compile(r"\s*module\s\w*")

Definition at line 21 of file autoEditReverseFast.py.

◆ patt_module_end

autoEditReverseFast.patt_module_end = re.compile("(\s*end module\s)(\w*)(_b)\s*")

Definition at line 23 of file autoEditReverseFast.py.

◆ patt_module_start

autoEditReverseFast.patt_module_start = re.compile("(\s*module\s)(\w*)(_b)\s*")

Definition at line 22 of file autoEditReverseFast.py.

◆ patt_modules

autoEditReverseFast.patt_modules = re.compile(r"(\s*use\s*\w*)(_b)\s*")

Definition at line 20 of file autoEditReverseFast.py.

◆ patt_popcontrol1b

autoEditReverseFast.patt_popcontrol1b = re.compile(r"(\s*call popcontrol1b\()(.*)\‍)")

Definition at line 31 of file autoEditReverseFast.py.

◆ patt_pushcontrol1b

autoEditReverseFast.patt_pushcontrol1b = re.compile(r"(\s*call pushcontrol1b\()(.*)\‍)")

Definition at line 30 of file autoEditReverseFast.py.

◆ patt_subend

autoEditReverseFast.patt_subend = re.compile(r"\s*end\s*subroutine")

Definition at line 33 of file autoEditReverseFast.py.

◆ patt_subroutine

autoEditReverseFast.patt_subroutine = re.compile(r"\s*subroutine\s\w*")

Definition at line 32 of file autoEditReverseFast.py.

◆ useful_modules

list autoEditReverseFast.useful_modules
Initial value:
1 = [
2  "bcpointers_fast_b",
3  "bcroutines_fast_b",
4  "flowutils_fast_b",
5  "fluxes_fast_b",
6  "initializeflow_fast_b",
7  "residuals_fast_b",
8  "sa_fast_b",
9  "solverutils_fast_b",
10  "surfaceintegrations_fast_b",
11  "turbbcroutines_fast_b",
12  "turbutils_fast_b",
13  "utils_fast_b",
14  "walldistance_fast_b",
15 ]

Definition at line 40 of file autoEditReverseFast.py.