Changeset 255
- Timestamp:
- 09/04/09 09:54:32 (3 months ago)
- Files:
-
- lib/Process/MpiChunk.pm (modified) (3 diffs)
- lib/Process/MpiTiers.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lib/Process/MpiChunk.pm
r242 r255 57 57 58 58 #handle case of calling as function rather than method 59 if ( ref($self) ne "Process::MpiChunk") {59 if ($self ne "Process::MpiChunk" && ref($self) ne "Process::MpiChunk") { 60 60 $VARS = $self; 61 61 $self = new Process::MpiChunk(); … … 161 161 162 162 #handle case of calling as function rather than method 163 if ( ref($self) ne "Process::MpiChunk") {163 if ($self ne "Process::MpiChunk" && ref($self) ne "Process::MpiChunk") { 164 164 $tID = $VARS; 165 165 $VARS = $level; … … 237 237 238 238 #handle case of calling as function rather than method 239 if ( ref($self) ne "Process::MpiChunk") {239 if ($self ne "Process::MpiChunk" && ref($self) ne "Process::MpiChunk") { 240 240 $VARS = $level; 241 241 $level = $self; lib/Process/MpiTiers.pm
r250 r255 40 40 $self->{TERMINATE} = 0; 41 41 $self->{FAILED} = 0; 42 43 #optionaly override chunk type 44 $self->{CHUNK_REF} = shift @args || "Process::MpiChunk"; 45 46 #setup the tier 42 47 $self->_initialize_level(0); 43 48 $self->_prepare($VARS); … … 57 62 58 63 try{ 59 Process::MpiChunk::prepare($VARS);64 $self->{CHUNK_REF}->prepare($VARS); 60 65 } 61 66 catch Error::Simple with { … … 205 210 206 211 try { 207 $next_level = Process::MpiChunk::flow($level, $self->{VARS});212 $next_level = $self->{CHUNK_REF}->flow($level, $self->{VARS}); 208 213 } 209 214 catch Error::Simple with { … … 231 236 232 237 try { 233 $chunks = Process::MpiChunk::loader($level, $self->{VARS}, $self->id);238 $chunks = $self->{CHUNK_REF}->loader($level, $self->{VARS}, $self->id); 234 239 } 235 240 catch Error::Simple with {
