222 |
|
|
223 |
void |
void |
224 |
Simulation::run(const Method &method){ |
Simulation::run(const Method &method){ |
225 |
|
Instanc &model = getModel(); |
226 |
|
this->run(method,model); |
227 |
|
} |
228 |
|
|
229 |
|
void |
230 |
|
Simulation::run(const Method &method, Instanc &model){ |
231 |
|
|
232 |
cerr << "RUNNING PROCEDURE " << method.getName() << endl; |
cerr << "RUNNING PROCEDURE " << method.getName() << endl; |
233 |
Nam name = Nam(method.getSym()); |
Nam name = Nam(method.getSym()); |
234 |
//cerr << "CREATED NAME '" << name.getName() << "'" << endl; |
//cerr << "CREATED NAME '" << name.getName() << "'" << endl; |
235 |
Proc_enum pe; |
Proc_enum pe; |
236 |
pe = Initialize( |
pe = Initialize( |
237 |
&*(getModel().getInternalType()) ,name.getInternalType(), "__not_named__" |
&*(model.getInternalType()) ,name.getInternalType(), "__not_named__" |
238 |
,ASCERR |
,ASCERR |
239 |
,0, NULL, NULL |
,0, NULL, NULL |
240 |
); |
); |
310 |
ss << "Invalid error code"; |
ss << "Invalid error code"; |
311 |
} |
} |
312 |
|
|
|
|
|
313 |
ss << " (" << int(pe) << ")"; |
ss << " (" << int(pe) << ")"; |
314 |
throw runtime_error(ss.str()); |
throw runtime_error(ss.str()); |
315 |
} |
} |