[Swift-user] Re: swift script calling procedure

Michael Wilde wilde at mcs.anl.gov
Thu Jul 31 13:21:50 CDT 2008


Zhao reports that changing readdata to readData() as per the User Guide 
compiles correctly.

Perhaps the code he tried was wrong or never worked, or perhaps the case 
of the function or the case checking rules changed between the time this 
last worked and now.

- Mike


On 7/31/08 12:41 PM, Zhao Zhang wrote:
> Hi, Mike
> 
> I am using the same structure of the swift script you used to run dock5 
> in April. The old file is at surveyor:/home/wilde/doc5/run01.
> Could some one take a look at this and point out why it failed to 
> compile with the procedure readdata( ) ? Thanks so much.
> 
> best wishes
> zhangzhao
> 
> 
> My script is like this:
> 
> /type DockOut;
> type Mol2;
> 
> dock (string id, Mol2 mfile, DockOut ofile, string protein)
> {
>  app { rundock @id  @mfile @ofile; }
> }
> 
> type params {
>  string idname;
>  string mname;
>  string oname;
>  string pname;
> };
> 
> doall(params pset[])
> {
>  foreach p in pset {
>    string id=p.idname;
>    Mol2 mfile=p.mname;
>    DockOut ofile=p.oname;
>    string protein=p.pname;
>    dock(id, mfile, ofile, protein);
>  }
> }
> 
> // Main
> 
> params p[];
> p = readdata("paramlist");
> doall(p);/
> 
> It failed to be compiled with this message:
> /
> zzhang at login6.surveyor:~/swift/etc> swift dock2.swift
> Could not start execution.
>        Compile error in procedure invocation at line 30: Procedure 
> readdata is not declared./
> 
> 
> I am also attaching the paramlist file:
> 
> /idname mname oname pname
> 0 /home/zzhang/swift_dock6/run05/000/000/run05_in.0000000.mol2 
> /home/zzhang/swift_dock6/run05/000/000/run05_out.0000000.tar.gz 1KQP/



More information about the Swift-user mailing list