Ignore:
Timestamp:
Sep 15, 2011, 10:04:52 AM (13 years ago)
Author:
Evgeny Stambulchik <Evgeny.Stambulchik@…>
Branch:
default
Phase:
public
Message:

Got rid of unused _m_reduced and _reference in Species.

Location:
source/class/pf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • source/class/pf/Plasma.js

    r292 r293  
    425425       
    426426        // Defaults: 1e16 1/cc, 1 eV
    427         this.r = new pf.base.Species("r", m_p,  0,       0, 1.0/E0, null);
    428         this.e = new pf.base.Species("e", 1.0, -1, 1e16*V0, 1.0/E0, this.r);
    429         this.i = new pf.base.Species("i", m_p, +1, 1e16*V0, 1.0/E0, this.r);
     427        this.r = new pf.base.Species("r", m_p,  0,       0, 1.0/E0);
     428        this.e = new pf.base.Species("e", 1.0, -1, 1e16*V0, 1.0/E0);
     429        this.i = new pf.base.Species("i", m_p, +1, 1e16*V0, 1.0/E0);
    430430
    431431        this.P_r = 0;
  • source/class/pf/base/Species.js

    r268 r293  
    1010        _t : 0.0,
    1111       
    12         _reference : null,
    13        
    14         _m_reduced : 0.0,
    15        
    1612        _update: function()
    1713        {
    18             var reference = this._reference;
    19             if (reference) {
    20                 this._m_reduced = reference._m*this._m/(reference._m + this._m);
    21             }
    2214        },
    2315       
     
    207199       
    208200   
    209     construct: function(id, m, q, n, t, reference)
     201    construct: function(id, m, q, n, t)
    210202    {
    211203        if (m <= 0.0 || n < 0.0 || t <= 0.0) {
     
    219211        this._t  = t;
    220212       
    221         this._reference = reference;
    222        
    223213        this._update();
    224214    }
Note: See TracChangeset for help on using the changeset viewer.