123 def Error_Check_Comm_Input(BW_Node_To_Node, LAT_Node_To_Node, BW_Socket_To_Socket, LAT_Socket_To_Socket, BW_Core_To_Core, LAT_Core_To_Core):
130 if not os.path.exists(error_path):
134 error_txt = open(
'Error/error_comm_input.txt',
'w')
137 if(type(BW_Node_To_Node)
is not float):
138 error_txt.write(
"Please input an float for Bandwith Node To Node")
139 error_txt.write(
'\n')
143 if(BW_Node_To_Node <= 0):
144 error_txt.write(
"Please give a positive number for Bandwith Node To Node")
145 error_txt.write(
'\n')
149 if(type(LAT_Node_To_Node)
is not float):
150 error_txt.write(
"Please input an float for Latency Node To Node")
151 error_txt.write(
'\n')
155 if(LAT_Node_To_Node <= 0):
156 error_txt.write(
"Please give a positive number for Latency Node To Node")
157 error_txt.write(
'\n')
161 if(type(BW_Socket_To_Socket)
is not float):
162 error_txt.write(
"Please input an float for Bandwith Socket To Socket")
163 error_txt.write(
'\n')
167 if(BW_Socket_To_Socket <= 0):
168 error_txt.write(
"Please give a positive number for Bandwith Socket To Socket")
169 error_txt.write(
'\n')
173 if(type(LAT_Socket_To_Socket)
is not float):
174 error_txt.write(
"Please input an float for Latency Socket To Socket")
175 error_txt.write(
'\n')
179 if(LAT_Socket_To_Socket <= 0):
180 error_txt.write(
"Please give a positive number for Latency Socket To Socket")
181 error_txt.write(
'\n')
185 if(type(BW_Core_To_Core)
is not float):
186 error_txt.write(
"Please input an float for Bandwith Core To Core")
187 error_txt.write(
'\n')
191 if(BW_Core_To_Core <= 0):
192 error_txt.write(
"Please give a positive number for Bandwith Core To Core")
193 error_txt.write(
'\n')
197 if(type(LAT_Core_To_Core)
is not float):
198 error_txt.write(
"Please input an float for Latency Core To Core")
199 error_txt.write(
'\n')
203 if(LAT_Core_To_Core <= 0):
204 error_txt.write(
"Please give a positive number for Latency Core To Core")
205 error_txt.write(
'\n')
209 return(check,
'No errors in Processor, Element and Mode inputs')
211 return(check,
'Errors found in Communication inputs - Please see Error/error_comm_input.txt')
def Error_Check_Comm_Input