Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/target-cpu/fragments/seq-run-nobsp.in
ViewVC logotype

Diff of /branches/vis15/src/compiler/target-cpu/fragments/seq-run-nobsp.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4796, Mon Oct 24 11:39:31 2016 UTC revision 4797, Mon Oct 24 16:59:27 2016 UTC
# Line 1  Line 1 
1  //! Run the Diderot program (sequential version without BSP semantics)  //! Run the Diderot program (sequential version without BSP semantics)
2  //! \param max_nsteps the limit on the number of super steps; 0 means unlimited  //! \param max_nsteps the limit on the number of super steps; 0 means unlimited
3  //! \return the number of steps taken, or -1 on error.  //! \return the number of steps taken, or 0 on error.
4  uint32_t world::run (uint32_t max_nsteps)  uint32_t world::run (uint32_t max_nsteps)
5  {  {
6      if (this->_stage < diderot::POST_CREATE) {      if (this->_stage < diderot::POST_CREATE) {
7          biffMsgAdd (this->_errors, "attempt to run uninitialized program\n");          biffMsgAdd (this->_errors, "attempt to run uninitialized program\n");
8          return -1;          return 0;
9      }      }
10      else if (this->_stage == diderot::DONE) {      else if (this->_stage == diderot::DONE) {
11          return 0;          return 0;

Legend:
Removed from v.4796  
changed lines
  Added in v.4797

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0