Changeset 69eca8 for pcp/src/ions.c
- Timestamp:
- Apr 21, 2008, 2:19:25 PM (17 years ago)
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified pcp/src/ions.c ¶
rc5bdb23 r69eca8 597 597 598 598 /** Sum up all forces acting on Ions. 599 * IonType::FIon = IonType::FEwald + IonType::FIonL + IonType::FIonNL for all599 * IonType::FIon = IonType::FEwald + IonType::FIonL + IonType::FIonNL + IonType::FMagnetic for all 600 600 * dimensions #NDIM and each Ion of IonType 601 601 * \param *P Problem at hand … … 608 608 for (j=0; j < I->I[i].Max_IonsOfType; j++) 609 609 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]); 611 611 } 612 612
Note:
See TracChangeset
for help on using the changeset viewer.