[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
CAPE-OPEN Discussions about use and implementation of the CAPE-OPEN standard 2017-11-30T15:52:37+00:00 http://www.cape-open-forum.org/feed.php?f=11&t=573 2017-11-30T15:52:37+00:00 2017-11-30T15:52:37+00:00 http://www.cape-open-forum.org/viewtopic.php?t=573&p=1964#p1964 <![CDATA[Re: Calculate following Validate]]> (https://sourceforge.net/p/dwsim/discuss ... /3682f2f1/).
Here are my conclusions:

In the DWSIM socket we have/had
1) Validate()
2) RestorePorts() -> this invalidates the unit operation, because the "portConnectionChanged" event is fired and we cannot gurantee that the state is still valid.
3) Calculate() -> check for validation fails

The CO interface specification for Unit Operations (CO_Unit_Operations_v6.25) says, regarding 'Validate':
"However, Validate must be called before Calculate in case any (one or more) changes to the following
configuration aspects of the Unit Operation have changed since the last call to Calculate:
• ...
• connecting an object to a port
• disconnecting an object from a port
• ... "

So calling Validate() after RestorePorts() is fix to this particular problem.

Statistics: Posted by greTol — 30 November 2017, 15:52


]]>
2017-10-21T09:56:48+00:00 2017-10-21T09:56:48+00:00 http://www.cape-open-forum.org/viewtopic.php?t=573&p=1936#p1936 <![CDATA[Re: Calculate following Validate]]> Statistics: Posted by jasper — 21 October 2017, 09:56


]]>
2017-10-23T12:42:23+00:00 2017-10-20T13:22:57+00:00 http://www.cape-open-forum.org/viewtopic.php?t=573&p=1935#p1935 <![CDATA[Calculate following Validate]]> Statistics: Posted by greTol — 20 October 2017, 13:22


]]>