Changeset 7f30e2 in git for Singular/LIB/parallel.lib
- Timestamp:
- Nov 25, 2011, 5:22:38 PM (11 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- f1cfef36a45967a6dc88672e6efc050bf9c592b1
- Parents:
- 4093f96acfcc6419c56ee983c447099c3b87a36e
- git-author:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2011-11-25 17:22:38+01:00
- git-committer:
- Andreas Steenpass <steenpass@mathematik.uni-kl.de>2012-08-02 18:26:02+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/parallel.lib
r4093f9 r7f30e2 368 368 } 369 369 write(l(i), quote(execute("result = "+eval(commands[k]) 370 +"(currentargs[1..size(currentargs)]);")));370 +"("+argsToString("currentargs", size(currentargs))+");"))); 371 371 assignment[i] = k; 372 372 k++; … … 455 455 } 456 456 write(l(wait), quote(execute("def result = "+eval(commands[k]) 457 +"(currentargs[1..size(currentargs)]);")));457 +"("+argsToString("currentargs", size(currentargs))+");"))); 458 458 assignment[wait] = k; 459 459 k++; … … 717 717 return(i); 718 718 } 719 720 static proc argsToString(string name, int length) 721 { 722 string arglist; 723 if(length > 0) { 724 arglist = name+"[1]"; 725 } 726 int i; 727 for(i = 2; i <= length; i++) { 728 arglist = arglist+", "+name+"["+string(i)+"]"; 729 } 730 return(arglist); 731 }
Note: See TracChangeset
for help on using the changeset viewer.