Package aleph

Examples of aleph.GlobalObject.open()


    
    if (root == null) return;
    t = (Tree) root.open("w");

    gprev = t._prev;
    prev = (Tree) gprev.open("w");
    prev._next = null;
    t._prev = null;
    try {
      gprev.release();
    } catch (AlephException ale) {
View Full Code Here


      gtmp.release();
    } catch (AlephException ale) {
      Aleph.warning("Release failed: " + ale.getMessage());
    }

    prev = (Tree) gprev.open("w");
    prev._prev = gtmp;
    try {
      gprev.release();
    } catch (AlephException ale) {
      Aleph.warning("Release failed: " + ale.getMessage());
View Full Code Here

    for (; gt != null; gt=gdonext) { // loop over remaining points
      t = (Tree) gt.open("w");
      gdonext = t._next; // value won't be around later
      gmin = gcycle;
      cycle = (Tree) gcycle.open("r");
      mindist = distance(t, cycle);
      gtmp = cycle._next;
      try {
  gcycle.release();
      } catch (AlephException ale) {
View Full Code Here

        }catch (AlephException e) {}
 
        gCell = root;
        level = iMax >> 1;
        while (true) {
          cell = (Cell) gCell.open( "r" );
          in_write_mode = false;
          index = subindex(xp, level);
          level >>= 1;
 
          if (cell.next[index] == null) {
View Full Code Here

 
          if (cell.next[index] == null) {
            try{
              gCell.release();
            }catch (AlephException e) {}
            cell = (Cell) gCell.open( "w" );
            in_write_mode = true;
            if (cell.next[index] == null) {
              cell.next[index] = gBody;
              try{
                gCell.release();
View Full Code Here

          if (!cell.isCell(index)) {
            if (!in_write_mode) {
              try{
                gCell.release();
              }catch (AlephException e) {}
              cell = (Cell) gCell.open( "w" );
            }
            if (!cell.isCell(index)) {
              cell.next[index] = newCell(cell.next[index], level, data);
              cell.markCell(index);
            }
View Full Code Here

      double[] pos0 = new double[nDim];
      double[] acc  = new double[nDim];
   
      while (data.bodies_there > 0) {
        gBody = bodyTab[--data.bodies_there];
        body = (Body) gBody.open( "r" );
        SETVS(acc, 0.0);
        SETV(pos0, body.pos);
 
        try{ // release as soon as possible
          gBody.release();
View Full Code Here

        } catch (AlephException e) { }
 
        hackgrav(gBody, gRoot, pos0, acc, rsize*rsize, true);
 
        // open for write
        body = (Body) gBody.open( "w" );
 
        MULVS(dvel, acc, dtime);
        ADDV(body.vel, body.vel, dvel);
        try{
          gBody.release();
View Full Code Here

      Body body;
      double[] dpos = new double[nDim];
   
      while (data.bodies_there < data.nbody) {
        gBody = bodyTab[data.bodies_there++];
        body = (Body) gBody.open( "w" );
        MULVS(dpos, body.vel, dtime);
        ADDV(body.pos, body.pos, dpos);
        try{
          gBody.release();
        } catch( AlephException e ){}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.