512513514515516517518519520521522
gmin = ga; } /* if */ oldga = ga; ga = a._next; try { oldga.release(); } catch (AlephException ale) { Aleph.warning("Release failed: " + ale.getMessage()); } } /* for ga... */
580581582583584585586587588589590
gmin = gb; } /* if */ oldgb = gb; gb = b._next; try { oldgb.release(); } catch (AlephException ale) { Aleph.warning("Release failed: " + ale.getMessage()); } } /* for tmp... */
439440441442443444445446447448449
index = subindex(xp, level); level >>= 1; 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;
446447448449450451452453454455456
cell = (Cell) gCell.open( "w" ); in_write_mode = true; if (cell.next[index] == null) { cell.next[index] = gBody; try{ gCell.release(); }catch (AlephException e) {} break; } } if (!cell.isCell(index)) {
454455456457458459460461462463464
} } 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);
663664665666667668669670671672673
body = (Body) gBody.open( "r" ); SETVS(acc, 0.0); SETV(pos0, body.pos); try{ // release as soon as possible gBody.release(); } catch (AlephException e) { } hackgrav(gBody, gRoot, pos0, acc, rsize*rsize, true); // open for write
674675676677678679680681682683684
body = (Body) gBody.open( "w" ); MULVS(dvel, acc, dtime); ADDV(body.vel, body.vel, dvel); try{ gBody.release(); } catch (AlephException e) { } } return (Object) data;
790791792793794795796797798799800
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 ){} } return (Object) data;