Changeset 20613


Ignore:
Timestamp:
05/14/16 20:12:45 (9 years ago)
Author:
dlcheng
Message:

CHG (javascript): Cluster codeversion for generic.js.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/classes/clusters/generic.js

    r20612 r20613  
    1212        this.url=options.getfieldvalue('url','');
    1313        this.np=options.getfieldvalue('np',3);
     14        this.codeversion=options.getfieldvalue('codeversion',20486);
    1415        this.codepath=options.getfieldvalue('codepath','issmdir/bin');
    1516        this.executionpath=options.getfieldvalue('executionpath','issmdir/execution');
     
    101102                var nplength = new Uint32Array(1);
    102103                nplength[0] = npbuffer.byteLength;
    103 
     104               
     105                var codeversionbuffer = this.str2ab(md.cluster.codeversion.toString());
     106                var codeversionlength = new Uint32Array(1);
     107                codeversionlength[0] = codeversionbuffer.byteLength;
     108               
    104109                var runtimenamebuffer = this.str2ab(runtimename);
    105110                var runtimenamelength = new Uint32Array(1);
     
    122127                binlength[0] = binbuffer.byteLength;
    123128               
    124                 var data = new Blob([nplength,npbuffer,runtimenamelength,runtimenamebuffer,namelength,namebuffer,toolkitslength,toolkitsbuffer,solutionlength,solutionbuffer,binlength,binbuffer]);
     129                var data = new Blob([nplength,npbuffer,codeversionlength,codeversionbuffer,runtimenamelength,runtimenamebuffer,namelength,namebuffer,toolkitslength,toolkitsbuffer,solutionlength,solutionbuffer,binlength,binbuffer]);
    125130       
    126131                request.open("POST", this.url, true);
Note: See TracChangeset for help on using the changeset viewer.