Changeset 69eca8 for pcp/src/ions.c


Ignore:
Timestamp:
Apr 21, 2008, 2:19:25 PM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
8dd187
Parents:
c5bdb23
git-author:
Frederik Heber <heber@…> (04/18/08 16:15:16)
git-committer:
Frederik Heber <heber@…> (04/21/08 14:19:25)
Message:

CalculateIonForce(): some change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified pcp/src/ions.c

    rc5bdb23 r69eca8  
    597597
    598598/** Sum up all forces acting on Ions.
    599  * IonType::FIon = IonType::FEwald  + IonType::FIonL + IonType::FIonNL for all
     599 * IonType::FIon = IonType::FEwald  + IonType::FIonL + IonType::FIonNL + IonType::FMagnetic for all
    600600 * dimensions #NDIM and each Ion of IonType
    601601 * \param *P Problem at hand
     
    608608    for (j=0; j < I->I[i].Max_IonsOfType; j++)
    609609      for (d=0; d<NDIM;d++)
    610                                 I->I[i].FIon[d+j*NDIM] = I->I[i].FEwald[d+j*NDIM] + I->I[i].FIonL[d+j*NDIM] + I->I[i].FIonNL[d+j*NDIM];
     610                                I->I[i].FIon[d+j*NDIM] = (I->I[i].FEwald[d+j*NDIM] + I->I[i].FIonL[d+j*NDIM] + I->I[i].FIonNL[d+j*NDIM] + I->I[i].FMagnetic[d+j*NDIM]);
    611611}
    612612
Note: See TracChangeset for help on using the changeset viewer.