<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<div>Hi,
<br />
<br />
In my simulation programme one can reinput changed system data after Catalyst has already been initialized to rerun the
simulation with modified data.
<br />
So, I guess the coprocessor has to be reinitialized too. That's why I have tried something like:
<br />
<br />
// first run
<br />
call coprocessorinitializewithpython("coproc.py",9)
<br />
...some code...
<br />
<br />
// after reinput of new system data (same programme session)
<br />
call coprocessorfinalize()
<br />
call coprocessorinitializewithpython("coproc.py",9)
<br />
<br />
but the programme breaks during the second call to coprocessorinitializewithpython().
<br />
The problem is that if I don´t finalize and/or initialize again, I get error messages saying "New time step is not
after last time step" and so on.
<br />
<br />
I don´t want to exit the programme and restart it, just to get it working.
<br />
What is the correct way to solve this?
<br />
<br />
Best regards,
<br />
Thomas</div>
</body>
</html>