File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22which open
33if [ $? == 0 ]
44then
5- open https://controlcore-project.github.io/concore-editor/
5+ open -a ' Google Chrome ' https://controlcore-project.github.io/concore-editor/
66else
77 which xdg-open
88 if [ $? == 0 ]
Original file line number Diff line number Diff line change 1- start https://controlcore-project.github.io/concore-editor/
1+ start chrome https://controlcore-project.github.io/concore-editor/
22
Original file line number Diff line number Diff line change 1212init_simtime_ym = "[0.0, 0.0, 0.0]"
1313
1414u = concore .initval (init_simtime_u )
15- ym = concore .initval (init_simtime_ym )
15+ ym = concore2 .initval (init_simtime_ym )
1616while (concore .simtime < concore .maxtime ):
1717 while concore .unchanged ():
1818 u = concore .read (concore .iport ['U1' ],"u" ,init_simtime_u )
19- concore2 .write (concore .oport ['U2' ],"u" ,u )
19+ concore .write (concore .oport ['U2' ],"u" ,u )
20+ print (u )
2021 old2 = concore2 .simtime
21- while concore2 .simtime <= old2 :
22+ while concore2 .unchanged () or concore2 . simtime <= old2 :
2223 ym = concore2 .read (concore .iport ['Y2' ],"ym" ,init_simtime_ym )
23- concore .write (concore .oport ['Y1' ],"ym" ,ym )
24+ concore2 .write (concore .oport ['Y1' ],"ym" ,ym )
2425 print ("funbody u=" + str (u )+ " ym=" + str (ym )+ " time=" + str (concore2 .simtime ))
2526print ("retry=" + str (concore .retrycount ))
Original file line number Diff line number Diff line change 1111init_simtime_u = "[0.0, 0.0, 0.0]"
1212init_simtime_ym = "[0.0, 0.0, 0.0]"
1313
14- ym = concore .initval (init_simtime_ym )
14+ u = concore .initval (init_simtime_u )
15+ ym = concore2 .initval (init_simtime_ym )
1516while (concore .simtime < concore .maxtime ):
1617 while concore .unchanged ():
1718 u = concore .read (concore .iport ['U' ],"u" ,init_simtime_u )
18- concore2 .write (concore .oport ['U1' ],"u" ,u )
19+ concore .write (concore .oport ['U1' ],"u" ,u )
20+ print (u )
1921 old2 = concore2 .simtime
20- while concore2 .simtime <= old2 :
22+ while concore2 .unchanged () or concore2 . simtime <= old2 :
2123 ym = concore2 .read (concore .iport ['Y1' ],"ym" ,init_simtime_ym )
22- concore .write (concore .oport ['Y' ],"ym" ,ym )
23- print ("funcall u=" + str (u )+ " ym=" + str (ym )+ " time=" + str (concore2 .simtime ))
24+ concore2 .write (concore .oport ['Y' ],"ym" ,ym )
25+ print ("funbody u=" + str (u )+ " ym=" + str (ym )+ " time=" + str (concore2 .simtime ))
2426print ("retry=" + str (concore .retrycount ))
Original file line number Diff line number Diff line change 1+ import concore
2+ import numpy as np
3+ print ("pass u" )
4+
5+ concore .delay = 0.005
6+ concore .default_maxtime (150 )
7+ init_simtime_u = "[0.0, 0.0, 0.0]"
8+ init_simtime_ym = "[0.0, 0.0, 0.0]"
9+ u = concore .initval (init_simtime_u )
10+ while (concore .simtime < concore .maxtime ):
11+ while concore .unchanged ():
12+ u = concore .read (1 ,"u" ,init_simtime_u )
13+ concore .write (1 ,"u" ,u )
14+ print ("u=" + str (u ))
15+ print ("retry=" + str (concore .retrycount ))
16+
Original file line number Diff line number Diff line change 1+ import concore
2+ import numpy as np
3+ print ("pass ym" )
4+
5+ concore .delay = 0.005
6+ concore .default_maxtime (150 )
7+ init_simtime_u = "[0.0, 0.0, 0.0]"
8+ init_simtime_ym = "[0.0, 0.0, 0.0]"
9+ ym = concore .initval (init_simtime_ym )
10+ while (concore .simtime < concore .maxtime ):
11+ while concore .unchanged ():
12+ ym = concore .read (1 ,"ym" ,init_simtime_ym )
13+ concore .write (1 ,"ym" ,ym )
14+ print (" ym=" + str (ym ))
15+ print ("retry=" + str (concore .retrycount ))
16+
You can’t perform that action at this time.
0 commit comments