BG_Flood
0.1
Documentation (Work-in-progress)
|
Classes | |
class | InfoTable |
Variables | |
string | BG_ReadInput = "src/ReadInput.cu" |
string | BG_Params_h = "src/Param.h" |
string | BG_Forcing_h = "src/Forcing.h" |
string | ParamListFile = "ParametersList-py.md" |
list | keys = [] |
list | ref_name = [] |
list | Params = [] |
list | Forcings = [] |
R = open(BG_ReadInput,'r') | |
lines = R.readlines() | |
line = re.sub(r"[\t\s]*","",line) | |
key_loc = re.findall("parameterstr=\"(\w+)\"\.*", line, re.IGNORECASE)[0] | |
myParams = list(set(Params)) | |
myForcings = list(set(Forcings)) | |
list | Default = ['']*len(keys) |
list | Example = ['']*len(keys) |
list | Comment = ['']*len(keys) |
list | Domain = ['NN']*len(keys) |
P = open(BG_Params_h,'r') | |
P_lines = P.readlines() | |
F = open(BG_Forcing_h,'r') | |
F_lines = F.readlines() | |
list | refword = ref_name[ind] |
Creation of the variables for the tables. More... | |
list | key = keys[ind] |
list | com = [] |
found = re.findall(rf"\s*std.*\s* {re.escape(refword)}\s*=*(.*);\s*(\/\/)*\s*(.*)" , line) | |
Line = i | |
int | j = 1 |
DEF = re.search(r'\.*Default:\s*(.*)',line); | |
ENDCOM = re.search(r'\.*\*\/\s*',line); | |
EXX = re.search(r'\.*Ex:\s*(.*)',line); | |
dictionary | SubTitle = {} |
Out = open(ParamListFile,'w') | |
int | First = 0 |
Paramters. More... | |
string | mystr = "|" + str(ParamTable.Reference[ind]) + "|" + str(ParamTable.Keys[ind]) + "|" + str(ParamTable.Default[ind][4:]) + "|" + str(ParamTable.Comment[ind][4:]) + "|\n" |
Forcings. More... | |
string ReadInput.BG_Forcing_h = "src/Forcing.h" |
string ReadInput.BG_Params_h = "src/Param.h" |
string ReadInput.BG_ReadInput = "src/ReadInput.cu" |
list ReadInput.com = [] |
list ReadInput.Comment = ['']*len(keys) |
ReadInput.DEF = re.search(r'\.*Default:\s*(.*)',line); |
list ReadInput.Default = ['']*len(keys) |
string ReadInput.Domain = ['NN']*len(keys) |
ReadInput.ENDCOM = re.search(r'\.*\*\/\s*',line); |
list ReadInput.Example = ['']*len(keys) |
ReadInput.EXX = re.search(r'\.*Ex:\s*(.*)',line); |
ReadInput.F = open(BG_Forcing_h,'r') |
ReadInput.F_lines = F.readlines() |
int ReadInput.First = 0 |
Paramters.
list ReadInput.Forcings = [] |
ReadInput.found = re.findall(rf"\s*std.*\s* {re.escape(refword)}\s*=*(.*);\s*(\/\/)*\s*(.*)" , line) |
int ReadInput.j = 1 |
list ReadInput.key = keys[ind] |
ReadInput.key_loc = re.findall("parameterstr=\"(\w+)\"\.*", line, re.IGNORECASE)[0] |
list ReadInput.keys = [] |
ReadInput.line = re.sub(r"[\t\s]*","",line) |
ReadInput.Line = i |
ReadInput.lines = R.readlines() |
ReadInput.myForcings = list(set(Forcings)) |
ReadInput.myParams = list(set(Params)) |
string ReadInput.mystr = "|" + str(ParamTable.Reference[ind]) + "|" + str(ParamTable.Keys[ind]) + "|" + str(ParamTable.Default[ind][4:]) + "|" + str(ParamTable.Comment[ind][4:]) + "|\n" |
Forcings.
Non-identified.
ReadInput.Out = open(ParamListFile,'w') |
ReadInput.P = open(BG_Params_h,'r') |
ReadInput.P_lines = P.readlines() |
string ReadInput.ParamListFile = "ParametersList-py.md" |
list ReadInput.Params = [] |
ReadInput.R = open(BG_ReadInput,'r') |
list ReadInput.ref_name = [] |
list ReadInput.refword = ref_name[ind] |
Creation of the variables for the tables.
dictionary ReadInput.SubTitle = {} |