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

Go to the source code of this file.

Namespaces

 autoEditReverseFast
 

Variables

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