File: script.sce

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (13 lines) | stat: -rw-r--r-- 388 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright INRIA
while %t  //Infinite loop
[buf,info] = pvm_recv(pvm_parent(), -1)//get new variable or instruction
  if info<0 then break,end
  
  if type(buf)==10 then //an instruction
    if execstr(buf,'errcatch') then break,end//execute it
    write(%io(2),'Instruction: '+buf+' done')
  else //a variable
    %var=buf //preserve it in %var
    disp('Variable received')
  end
end