|
6080 | 6080 | "\t\r",
|
6081 | 6081 | "\t// error if user critical load not multiple of 8760\r",
|
6082 | 6082 | "\t// or different length than load data\r",
|
6083 |
| - "\tif ( ${crit_load_type} == 1 )\r", |
| 6083 | + "\tif ( is_critical_load_tech ) \r", |
6084 | 6084 | "\t{\r",
|
6085 |
| - "\t\tif ( mod(#${crit_load_user_data}, 8760) != 0 || #${crit_load_user_data}!=#${load_user_data})\r", |
| 6085 | + "\t\tif ( ${crit_load_type} == 1 )\r", |
6086 | 6086 | "\t\t{\r",
|
6087 |
| - "\t\t\tmsgbox('Electric Load Data Error.\\n'\r", |
6088 |
| - "\t\t\t+'Electric load data and critical load data must use the same time step:\\n'\r", |
6089 |
| - "\t\t\t+' Electric load time step is ' + 8760/#${load_user_data}*60 + ' minutes.\\n'\r", |
6090 |
| - "\t\t\t+' Critical load time step is ' + 8760/#${crit_load_user_data}*60 + ' minutes.\\n\\n'\r", |
6091 |
| - "\t\t\t+'See Grid Outage page for critical load data and Electric Load page for electric load data.');\r", |
| 6087 | + "\t\t\tif ( mod(#${crit_load_user_data}, 8760) != 0 || #${crit_load_user_data}!=#${load_user_data})\r", |
| 6088 | + "\t\t\t{\r", |
| 6089 | + "\t\t\t\tmsgbox('Electric Load Data Error.\\n'\r", |
| 6090 | + "\t\t\t\t+'Electric load data and critical load data must use the same time step:\\n'\r", |
| 6091 | + "\t\t\t\t+' Electric load time step is ' + 8760/#${load_user_data}*60 + ' minutes.\\n'\r", |
| 6092 | + "\t\t\t\t+' Critical load time step is ' + 8760/#${crit_load_user_data}*60 + ' minutes.\\n\\n'\r", |
| 6093 | + "\t\t\t\t+'See Grid Outage page for critical load data and Electric Load page for electric load data.');\r", |
| 6094 | + "\t\t\t}\r", |
6092 | 6095 | "\t\t}\r",
|
6093 | 6096 | "\t}\r",
|
6094 | 6097 | "}"
|
|
0 commit comments