Changeset ecc050
- Timestamp:
- May 19, 2021, 7:06:29 PM (4 years ago)
- Branches:
- Candidate_v1.7.0, stable
- Children:
- 923ce2
- Parents:
- 8c9cce
- git-author:
- Frederik Heber <frederik.heber@…> (04/24/19 21:29:22)
- git-committer:
- Frederik Heber <frederik.heber@…> (05/19/21 19:06:29)
- Files:
-
- 6 edited
-
doc/userguide/userguide.xml (modified) (2 diffs)
-
src/Python/PythonScripting_impl.hpp (modified) (1 diff)
-
src/Python/modules.hpp (modified) (1 diff)
-
src/Python/wait.cpp (modified) (2 diffs)
-
src/cleanUp.cpp (modified) (1 diff)
-
src/cleanUp.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
doc/userguide/userguide.xml
r8c9cce recc050 1603 1603 <programlisting>... change-box "20,0,20,0,0,20"</programlisting> 1604 1604 <para>As the domain matrix is symmetric, six values suffice to fully 1605 specify it. We have to give the six components of the lower triangle matrix. Here, we change the box to a cuboid of equal edge length of 1606 20.<warning> 1607 <para>In case of the python interface an upper triangle matrix is given. Hence, the above would read "20,0,0,20,0,20".</para> 1608 </warning></para> 1605 specify it. We have to give the six components of the lower triangle 1606 matrix. Here, we change the box to a cuboid of equal edge length of 1607 20. 1608 <warning> 1609 <para>In case of the python interface an upper triangle matrix is given. Hence, the above would read "20,0,0,20,0,20".</para> 1610 </warning></para> 1609 1611 </section> 1610 1612 <section xml:id="domain.bound-in-box"> … … 3244 3246 <programlisting> 3245 3247 mol.MoleculeLoad("...") 3246 mol.wait()3248 status = mol.wait() 3247 3249 </programlisting> 3248 <para>This will continue first after the molecule has been fully loaded. 3249 </para> 3250 <para>This will continue first only after the molecule has been fully 3251 loaded. Moreover, wait returns whether the actions contained executed 3252 succesfully.</para> 3250 3253 <warning>These wait()s will have no effect if the python script is loaded 3251 3254 via the "load-session" command inside a User Interface (command-line, -
src/Python/PythonScripting_impl.hpp
r8c9cce recc050 95 95 "Reinitializes the internal state of the python module as if it had been freshly imported,saves all input files beforehand." 96 96 ); 97 boost::python::def (97 boost::python::def< bool() >( 98 98 "wait", 99 99 MoleCuilder::detail::module_wait, -
src/Python/modules.hpp
r8c9cce recc050 25 25 void module_exit(); 26 26 void module_reinit(); 27 voidmodule_wait();27 bool module_wait(); 28 28 29 29 typedef std::vector<atomId_t> atomIdVec; -
src/Python/wait.cpp
r8c9cce recc050 42 42 #include "cleanUp.hpp" 43 43 44 voidMoleCuilder::detail::module_wait()44 bool MoleCuilder::detail::module_wait() 45 45 { 46 bool retval = true; 46 47 // prevent wait() in python scripts in case of present UI (loaded sessions) 47 48 #ifdef HAVE_ACTION_THREAD … … 49 50 LOG(0, "Waiting for action queue to idle."); 50 51 waitQueue(); 52 retval = getOkQueue(); 51 53 } 52 54 #endif 55 return retval; 53 56 } -
src/cleanUp.cpp
r8c9cce recc050 244 244 MoleCuilder::ActionQueue::getInstance().wait(); 245 245 } 246 #endif 246 247 /** Returns whether last action did ok. 248 * 249 */ 250 bool getOkQueue() 251 { 252 return MoleCuilder::ActionQueue::getConstInstance().getLastActionOk(); 253 } 254 #endif 255 256 -
src/cleanUp.hpp
r8c9cce recc050 22 22 void stopQueue(); 23 23 void waitQueue(); 24 bool getOkQueue(); 24 25 #endif 25 26
Note:
See TracChangeset
for help on using the changeset viewer.
