|
ADflow
v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
|
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) | |
autoEdit - A Python tool to automatically edit a set of files
according to the specified user rules:
G. Kenway
| bool autoEditReverseFast.addedModule = False |
Definition at line 98 of file autoEditReverseFast.py.
| list autoEditReverseFast.del_patterns |
Definition at line 24 of file autoEditReverseFast.py.
| autoEditReverseFast.DIR_MOD = sys.argv[2] |
Definition at line 17 of file autoEditReverseFast.py.
| autoEditReverseFast.DIR_ORI = sys.argv[1] |
Definition at line 16 of file autoEditReverseFast.py.
| string autoEditReverseFast.EXT = "_fast_b.f90" |
Definition at line 14 of file autoEditReverseFast.py.
| autoEditReverseFast.f = f.replace("_b", "_b") |
Definition at line 92 of file autoEditReverseFast.py.
| list autoEditReverseFast.FILE_IGNORE |
Definition at line 56 of file autoEditReverseFast.py.
Definition at line 95 of file autoEditReverseFast.py.
Definition at line 67 of file autoEditReverseFast.py.
| bool autoEditReverseFast.found = False |
Definition at line 116 of file autoEditReverseFast.py.
| bool autoEditReverseFast.hasSubroutine = False |
Definition at line 78 of file autoEditReverseFast.py.
| bool autoEditReverseFast.inSubroutine = False |
Definition at line 102 of file autoEditReverseFast.py.
| bool autoEditReverseFast.isModule = False |
Definition at line 77 of file autoEditReverseFast.py.
| string autoEditReverseFast.line = line.lower() |
Definition at line 80 of file autoEditReverseFast.py.
| autoEditReverseFast.m = patt_modules.match(line) |
Definition at line 114 of file autoEditReverseFast.py.
| autoEditReverseFast.num = m.group(2) |
Definition at line 128 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_comment = re.compile(r"\s*!.*") |
Definition at line 34 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_inttype = re.compile(r"\s*integer\*4\s\w*") |
Definition at line 35 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_module = re.compile(r"\s*module\s\w*") |
Definition at line 21 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_module_end = re.compile("(\s*end module\s)(\w*)(_b)\s*") |
Definition at line 23 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_module_start = re.compile("(\s*module\s)(\w*)(_b)\s*") |
Definition at line 22 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_modules = re.compile(r"(\s*use\s*\w*)(_b)\s*") |
Definition at line 20 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_popcontrol1b = re.compile(r"(\s*call popcontrol1b\()(.*)\)") |
Definition at line 31 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_pushcontrol1b = re.compile(r"(\s*call pushcontrol1b\()(.*)\)") |
Definition at line 30 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_subend = re.compile(r"\s*end\s*subroutine") |
Definition at line 33 of file autoEditReverseFast.py.
| autoEditReverseFast.patt_subroutine = re.compile(r"\s*subroutine\s\w*") |
Definition at line 32 of file autoEditReverseFast.py.
| list autoEditReverseFast.useful_modules |
Definition at line 40 of file autoEditReverseFast.py.