ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/heatflux/src/brains/ForceManager.cpp
(Generate patch)

Comparing:
trunk/src/brains/ForceManager.cpp (file contents), Revision 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
branches/heatflux/src/brains/ForceManager.cpp (file contents), Revision 1684 by chuckv, Thu Mar 1 19:04:10 2012 UTC

# Line 6 | Line 6
6   * redistribute this software in source and binary code form, provided
7   * that the following conditions are met:
8   *
9 < * 1. Acknowledgement of the program authors must be made in any
10 < *    publication of scientific results based in part on use of the
11 < *    program.  An acceptable form of acknowledgement is citation of
12 < *    the article in which the program was described (Matthew
13 < *    A. Meineke, Charles F. Vardeman II, Teng Lin, Christopher
14 < *    J. Fennell and J. Daniel Gezelter, "OOPSE: An Object-Oriented
15 < *    Parallel Simulation Engine for Molecular Dynamics,"
16 < *    J. Comput. Chem. 26, pp. 252-271 (2005))
17 < *
18 < * 2. Redistributions of source code must retain the above copyright
9 > * 1. Redistributions of source code must retain the above copyright
10   *    notice, this list of conditions and the following disclaimer.
11   *
12 < * 3. Redistributions in binary form must reproduce the above copyright
12 > * 2. Redistributions in binary form must reproduce the above copyright
13   *    notice, this list of conditions and the following disclaimer in the
14   *    documentation and/or other materials provided with the
15   *    distribution.
# Line 37 | Line 28
28   * arising out of the use of or inability to use software, even if the
29   * University of Notre Dame has been advised of the possibility of
30   * such damages.
31 + *
32 + * SUPPORT OPEN SCIENCE!  If you use OpenMD or its source code in your
33 + * research, please cite the appropriate papers when you publish your
34 + * work.  Good starting points are:
35 + *
36 + * [1]  Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).
37 + * [2]  Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).
38 + * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).
39 + * [4]  Vardeman & Gezelter, in progress (2009).
40   */
41 <
41 >
42   /**
43   * @file ForceManager.cpp
44   * @author tlin
# Line 50 | Line 50
50   #include "brains/ForceManager.hpp"
51   #include "primitives/Molecule.hpp"
52   #include "UseTheForce/doForces_interface.h"
53 < #define __C
53 > #define __OPENMD_C
54   #include "UseTheForce/DarkSide/fInteractionMap.h"
55   #include "utils/simError.h"
56 + #include "primitives/Bond.hpp"
57   #include "primitives/Bend.hpp"
58 < #include "primitives/Bend.hpp"
59 < namespace oopse {
58 > #include "primitives/Torsion.hpp"
59 > #include "primitives/Inversion.hpp"
60 > namespace OpenMD {
61  
62 < /*
61 <  struct BendOrderStruct {
62 <    Bend* bend;
63 <    BendDataSet dataSet;
64 <  };
65 <  struct TorsionOrderStruct {
66 <    Torsion* torsion;
67 <    TorsionDataSet dataSet;
68 <  };
62 >  void ForceManager::calcForces() {
63  
70  bool  BendSortFunctor(const BendOrderStruct& b1, const BendOrderStruct& b2) {
71    return b1.dataSet.deltaV < b2.dataSet.deltaV;
72  }
73
74  bool  TorsionSortFunctor(const TorsionOrderStruct& t1, const TorsionOrderStruct& t2) {
75    return t1.dataSet.deltaV < t2.dataSet.deltaV;
76  }
77  */
78  void ForceManager::calcForces(bool needPotential, bool needStress) {
79
64      if (!info_->isFortranInitialized()) {
65        info_->update();
66      }
67  
68      preCalculation();
69 <    
69 >
70      calcShortRangeInteraction();
71  
72 <    calcLongRangeInteraction(needPotential, needStress);
72 >    calcLongRangeInteraction();
73  
74      postCalculation();
75  
92 /*
93    std::vector<BendOrderStruct> bendOrderStruct;
94    for(std::map<Bend*, BendDataSet>::iterator i = bendDataSets.begin(); i != bendDataSets.end(); ++i) {
95        BendOrderStruct tmp;
96        tmp.bend= const_cast<Bend*>(i->first);
97        tmp.dataSet = i->second;
98        bendOrderStruct.push_back(tmp);
99    }
100
101    std::vector<TorsionOrderStruct> torsionOrderStruct;
102    for(std::map<Torsion*, TorsionDataSet>::iterator j = torsionDataSets.begin(); j != torsionDataSets.end(); ++j) {
103        TorsionOrderStruct tmp;
104        tmp.torsion = const_cast<Torsion*>(j->first);
105        tmp.dataSet = j->second;
106        torsionOrderStruct.push_back(tmp);
107    }
108    
109    std::sort(bendOrderStruct.begin(), bendOrderStruct.end(), std::ptr_fun(BendSortFunctor));
110    std::sort(torsionOrderStruct.begin(), torsionOrderStruct.end(), std::ptr_fun(TorsionSortFunctor));
111    std::cout << "bend" << std::endl;
112    for (std::vector<BendOrderStruct>::iterator k = bendOrderStruct.begin(); k != bendOrderStruct.end(); ++k) {
113        Bend* bend = k->bend;
114        std::cout << "atom1=" <<bend->getAtomA()->getGlobalIndex() << ",atom2 = "<< bend->getAtomB()->getGlobalIndex() << ",atom3="<<bend->getAtomC()->getGlobalIndex() << " ";
115        std::cout << "deltaV=" << k->dataSet.deltaV << ",p_theta=" << k->dataSet.prev.angle <<",p_pot=" << k->dataSet.prev.potential<< ",c_theta=" << k->dataSet.curr.angle << ", c_pot = " << k->dataSet.curr.potential <<std::endl;
116    }
117    std::cout << "torsio" << std::endl;
118    for (std::vector<TorsionOrderStruct>::iterator l = torsionOrderStruct.begin(); l != torsionOrderStruct.end(); ++l) {
119        Torsion* torsion = l->torsion;
120        std::cout << "atom1=" <<torsion->getAtomA()->getGlobalIndex() << ",atom2 = "<< torsion->getAtomB()->getGlobalIndex() << ",atom3="<<torsion->getAtomC()->getGlobalIndex() << ",atom4="<<torsion->getAtomD()->getGlobalIndex()<< " ";
121        std::cout << "deltaV=" << l->dataSet.deltaV << ",p_theta=" << l->dataSet.prev.angle <<",p_pot=" << l->dataSet.prev.potential<< ",c_theta=" << l->dataSet.curr.angle << ", c_pot = " << l->dataSet.curr.potential <<std::endl;
122    }
123   */
76    }
77  
78    void ForceManager::preCalculation() {
# Line 130 | Line 82 | namespace oopse {
82      Atom* atom;
83      Molecule::RigidBodyIterator rbIter;
84      RigidBody* rb;
85 <    
85 >
86      // forces are zeroed here, before any are accumulated.
87      // NOTE: do not rezero the forces in Fortran.
88 <    for (mol = info_->beginMolecule(mi); mol != NULL; mol = info_->nextMolecule(mi)) {
88 >
89 >    for (mol = info_->beginMolecule(mi); mol != NULL;
90 >         mol = info_->nextMolecule(mi)) {
91        for(atom = mol->beginAtom(ai); atom != NULL; atom = mol->nextAtom(ai)) {
92 <        atom->zeroForcesAndTorques();
92 >  atom->zeroForcesAndTorques();
93        }
94 <        
94 >
95        //change the positions of atoms which belong to the rigidbodies
96 <      for (rb = mol->beginRigidBody(rbIter); rb != NULL; rb = mol->nextRigidBody(rbIter)) {
97 <        rb->zeroForcesAndTorques();
98 <      }        
96 >      for (rb = mol->beginRigidBody(rbIter); rb != NULL;
97 >           rb = mol->nextRigidBody(rbIter)) {
98 >  rb->zeroForcesAndTorques();
99 >      }
100 >
101      }
102 <    
102 >
103 >    // Zero out the stress tensor
104 >    tau *= 0.0;
105 >
106    }
107  
108    void ForceManager::calcShortRangeInteraction() {
# Line 152 | Line 111 | namespace oopse {
111      Bond* bond;
112      Bend* bend;
113      Torsion* torsion;
114 +    Inversion* inversion;
115      SimInfo::MoleculeIterator mi;
116      Molecule::RigidBodyIterator rbIter;
117      Molecule::BondIterator bondIter;;
118      Molecule::BendIterator  bendIter;
119      Molecule::TorsionIterator  torsionIter;
120 <    double bondPotential = 0.0;
121 <    double bendPotential = 0.0;
122 <    double torsionPotential = 0.0;
120 >    Molecule::InversionIterator  inversionIter;
121 >    RealType bondPotential = 0.0;
122 >    RealType bendPotential = 0.0;
123 >    RealType torsionPotential = 0.0;
124 >    RealType inversionPotential = 0.0;
125  
126 <    //calculate short range interactions    
127 <    for (mol = info_->beginMolecule(mi); mol != NULL; mol = info_->nextMolecule(mi)) {
126 >    //calculate short range interactions
127 >    for (mol = info_->beginMolecule(mi); mol != NULL;
128 >         mol = info_->nextMolecule(mi)) {
129  
130        //change the positions of atoms which belong to the rigidbodies
131 <      for (rb = mol->beginRigidBody(rbIter); rb != NULL; rb = mol->nextRigidBody(rbIter)) {
132 <          rb->updateAtoms();
131 >      for (rb = mol->beginRigidBody(rbIter); rb != NULL;
132 >           rb = mol->nextRigidBody(rbIter)) {
133 >        rb->updateAtoms();
134 >        rb->updateAtomVel();
135        }
136  
137 <      for (bond = mol->beginBond(bondIter); bond != NULL; bond = mol->nextBond(bondIter)) {
137 >      for (bond = mol->beginBond(bondIter); bond != NULL;
138 >           bond = mol->nextBond(bondIter)) {
139          bond->calcForce();
140          bondPotential += bond->getPotential();
141        }
142  
143 +      for (bend = mol->beginBend(bendIter); bend != NULL;
144 +           bend = mol->nextBend(bendIter)) {
145  
146 <      for (bend = mol->beginBend(bendIter); bend != NULL; bend = mol->nextBend(bendIter)) {
146 >        RealType angle;
147 >        bend->calcForce(angle);
148 >        RealType currBendPot = bend->getPotential();
149  
150 <          double angle;
151 <            bend->calcForce(angle);
152 <          double currBendPot = bend->getPotential();          
153 <            bendPotential += bend->getPotential();
154 <          std::map<Bend*, BendDataSet>::iterator i = bendDataSets.find(bend);
155 <          if (i == bendDataSets.end()) {
156 <            BendDataSet dataSet;
157 <            dataSet.prev.angle = dataSet.curr.angle = angle;
158 <            dataSet.prev.potential = dataSet.curr.potential = currBendPot;
159 <            dataSet.deltaV = 0.0;
160 <            bendDataSets.insert(std::map<Bend*, BendDataSet>::value_type(bend, dataSet));
161 <          }else {
162 <            i->second.prev.angle = i->second.curr.angle;
163 <            i->second.prev.potential = i->second.curr.potential;
164 <            i->second.curr.angle = angle;
165 <            i->second.curr.potential = currBendPot;
196 <            i->second.deltaV =  fabs(i->second.curr.potential -  i->second.prev.potential);
197 <          }
150 >        bendPotential += bend->getPotential();
151 >        std::map<Bend*, BendDataSet>::iterator i = bendDataSets.find(bend);
152 >        if (i == bendDataSets.end()) {
153 >          BendDataSet dataSet;
154 >          dataSet.prev.angle = dataSet.curr.angle = angle;
155 >          dataSet.prev.potential = dataSet.curr.potential = currBendPot;
156 >          dataSet.deltaV = 0.0;
157 >          bendDataSets.insert(std::map<Bend*, BendDataSet>::value_type(bend, dataSet));
158 >        }else {
159 >          i->second.prev.angle = i->second.curr.angle;
160 >          i->second.prev.potential = i->second.curr.potential;
161 >          i->second.curr.angle = angle;
162 >          i->second.curr.potential = currBendPot;
163 >          i->second.deltaV =  fabs(i->second.curr.potential -
164 >                                   i->second.prev.potential);
165 >        }
166        }
167  
168 <      for (torsion = mol->beginTorsion(torsionIter); torsion != NULL; torsion = mol->nextTorsion(torsionIter)) {
169 <        double angle;
170 <          torsion->calcForce(angle);
171 <        double currTorsionPot = torsion->getPotential();
172 <          torsionPotential += torsion->getPotential();
173 <          std::map<Torsion*, TorsionDataSet>::iterator i = torsionDataSets.find(torsion);
174 <          if (i == torsionDataSets.end()) {
175 <            TorsionDataSet dataSet;
176 <            dataSet.prev.angle = dataSet.curr.angle = angle;
177 <            dataSet.prev.potential = dataSet.curr.potential = currTorsionPot;
178 <            dataSet.deltaV = 0.0;
179 <            torsionDataSets.insert(std::map<Torsion*, TorsionDataSet>::value_type(torsion, dataSet));
180 <          }else {
181 <            i->second.prev.angle = i->second.curr.angle;
182 <            i->second.prev.potential = i->second.curr.potential;
183 <            i->second.curr.angle = angle;
184 <            i->second.curr.potential = currTorsionPot;
185 <            i->second.deltaV =  fabs(i->second.curr.potential -  i->second.prev.potential);
186 <          }      
168 >      for (torsion = mol->beginTorsion(torsionIter); torsion != NULL;
169 >           torsion = mol->nextTorsion(torsionIter)) {
170 >        RealType angle;
171 >        torsion->calcForce(angle);
172 >        RealType currTorsionPot = torsion->getPotential();
173 >        torsionPotential += torsion->getPotential();
174 >        std::map<Torsion*, TorsionDataSet>::iterator i = torsionDataSets.find(torsion);
175 >        if (i == torsionDataSets.end()) {
176 >          TorsionDataSet dataSet;
177 >          dataSet.prev.angle = dataSet.curr.angle = angle;
178 >          dataSet.prev.potential = dataSet.curr.potential = currTorsionPot;
179 >          dataSet.deltaV = 0.0;
180 >          torsionDataSets.insert(std::map<Torsion*, TorsionDataSet>::value_type(torsion, dataSet));
181 >        }else {
182 >          i->second.prev.angle = i->second.curr.angle;
183 >          i->second.prev.potential = i->second.curr.potential;
184 >          i->second.curr.angle = angle;
185 >          i->second.curr.potential = currTorsionPot;
186 >          i->second.deltaV =  fabs(i->second.curr.potential -
187 >                                   i->second.prev.potential);
188 >        }
189        }
190  
191 +      for (inversion = mol->beginInversion(inversionIter);
192 +     inversion != NULL;
193 +           inversion = mol->nextInversion(inversionIter)) {
194 +        RealType angle;
195 +        inversion->calcForce(angle);
196 +        RealType currInversionPot = inversion->getPotential();
197 +        inversionPotential += inversion->getPotential();
198 +        std::map<Inversion*, InversionDataSet>::iterator i = inversionDataSets.find(inversion);
199 +        if (i == inversionDataSets.end()) {
200 +          InversionDataSet dataSet;
201 +          dataSet.prev.angle = dataSet.curr.angle = angle;
202 +          dataSet.prev.potential = dataSet.curr.potential = currInversionPot;
203 +          dataSet.deltaV = 0.0;
204 +          inversionDataSets.insert(std::map<Inversion*, InversionDataSet>::value_type(inversion, dataSet));
205 +        }else {
206 +          i->second.prev.angle = i->second.curr.angle;
207 +          i->second.prev.potential = i->second.curr.potential;
208 +          i->second.curr.angle = angle;
209 +          i->second.curr.potential = currInversionPot;
210 +          i->second.deltaV =  fabs(i->second.curr.potential -
211 +                                   i->second.prev.potential);
212 +        }
213 +      }
214      }
215 <    
216 <    double  shortRangePotential = bondPotential + bendPotential + torsionPotential;    
215 >
216 >    RealType  shortRangePotential = bondPotential + bendPotential +
217 >      torsionPotential +  inversionPotential;
218      Snapshot* curSnapshot = info_->getSnapshotManager()->getCurrentSnapshot();
219      curSnapshot->statData[Stats::SHORT_RANGE_POTENTIAL] = shortRangePotential;
220      curSnapshot->statData[Stats::BOND_POTENTIAL] = bondPotential;
221      curSnapshot->statData[Stats::BEND_POTENTIAL] = bendPotential;
222      curSnapshot->statData[Stats::DIHEDRAL_POTENTIAL] = torsionPotential;
223 <    
223 >    curSnapshot->statData[Stats::INVERSION_POTENTIAL] = inversionPotential;
224 >
225    }
226  
227 <  void ForceManager::calcLongRangeInteraction(bool needPotential, bool needStress) {
227 >  void ForceManager::calcLongRangeInteraction() {
228      Snapshot* curSnapshot;
229      DataStorage* config;
230 <    double* frc;
231 <    double* pos;
232 <    double* trq;
233 <    double* A;
234 <    double* electroFrame;
235 <    double* rc;
236 <    
230 >    RealType* frc;
231 >    RealType* pos;
232 >    RealType* vel;
233 >    RealType* trq;
234 >    RealType* A;
235 >    RealType* electroFrame;
236 >    RealType* rc;
237 >    RealType* vc;
238 >    RealType* particlePot;
239 >
240      //get current snapshot from SimInfo
241      curSnapshot = info_->getSnapshotManager()->getCurrentSnapshot();
242  
# Line 246 | Line 244 | namespace oopse {
244      config = &(curSnapshot->atomData);
245      frc = config->getArrayPointer(DataStorage::dslForce);
246      pos = config->getArrayPointer(DataStorage::dslPosition);
247 +    vel = config->getArrayPointer(DataStorage::dslVelocity);
248      trq = config->getArrayPointer(DataStorage::dslTorque);
249      A   = config->getArrayPointer(DataStorage::dslAmat);
250      electroFrame = config->getArrayPointer(DataStorage::dslElectroFrame);
251 +    particlePot = config->getArrayPointer(DataStorage::dslParticlePot);
252  
253      //calculate the center of mass of cutoff group
254      SimInfo::MoleculeIterator mi;
# Line 256 | Line 256 | namespace oopse {
256      Molecule::CutoffGroupIterator ci;
257      CutoffGroup* cg;
258      Vector3d com;
259 +    Vector3d comv;
260      std::vector<Vector3d> rcGroup;
261 +    std::vector<Vector3d> vcGroup;
262  
263      if(info_->getNCutoffGroups() > 0){
264 <
265 <      for (mol = info_->beginMolecule(mi); mol != NULL; mol = info_->nextMolecule(mi)) {
266 <        for(cg = mol->beginCutoffGroup(ci); cg != NULL; cg = mol->nextCutoffGroup(ci)) {
267 <          cg->getCOM(com);
268 <          rcGroup.push_back(com);
264 >
265 >      for (mol = info_->beginMolecule(mi); mol != NULL;
266 >           mol = info_->nextMolecule(mi)) {
267 >        for(cg = mol->beginCutoffGroup(ci); cg != NULL;
268 >            cg = mol->nextCutoffGroup(ci)) {
269 >              cg->getCOM(com);
270 >              cg->getCOMV(comv);
271 >              rcGroup.push_back(com);
272 >              vcGroup.push_back(comv);
273          }
274        }// end for (mol)
275 <      
275 >
276        rc = rcGroup[0].getArrayPointer();
277 +      vc = vcGroup[0].getArrayPointer();
278      } else {
279 <      // center of mass of the group is the same as position of the atom  if cutoff group does not exist
279 >      // center of mass of the group is the same as position of the atom
280 >      // if cutoff group does not exist
281        rc = pos;
282 +      vc = vel;
283      }
284 <  
284 >
285      //initialize data before passing to fortran
286 <    double longRangePotential[LR_POT_TYPES];
287 <    double lrPot = 0.0;
286 >    RealType longRangePotential[LR_POT_TYPES];
287 >    RealType lrPot = 0.0;
288 >    Vector3d totalDipole;
289 >    Jv_ = 0.0;
290 >
291      
292 <    Mat3x3d tau;
281 <    short int passedCalcPot = needPotential;
282 <    short int passedCalcStress = needStress;
292 >    
293      int isError = 0;
294  
295      for (int i=0; i<LR_POT_TYPES;i++){
296        longRangePotential[i]=0.0; //Initialize array
297      }
298  
299 <    doForceLoop( pos,
300 <                 rc,
301 <                 A,
302 <                 electroFrame,
303 <                 frc,
304 <                 trq,
305 <                 tau.getArrayPointer(),
306 <                 longRangePotential,
307 <                 &passedCalcPot,
308 <                 &passedCalcStress,
309 <                 &isError );
299 >    doForceLoop(pos,
300 >                vel,
301 >                rc,
302 >                vc,
303 >                A,
304 >                electroFrame,
305 >                frc,
306 >                trq,
307 >                tau.getArrayPointer(),
308 >                Jv_.getArrayPointer(),
309 >                longRangePotential,
310 >                particlePot,
311 >                &isError );
312  
313      if( isError ){
314        sprintf( painCave.errMsg,
315 <               "Error returned from the fortran force calculation.\n" );
315 >         "Error returned from the fortran force calculation.\n" );
316        painCave.isFatal = 1;
317        simError();
318      }
# Line 308 | Line 320 | namespace oopse {
320        lrPot += longRangePotential[i]; //Quick hack
321      }
322  
323 <    //store the tau and long range potential    
323 >    // grab the simulation box dipole moment if specified
324 >    if (info_->getCalcBoxDipole()){
325 >      getAccumulatedBoxDipole(totalDipole.getArrayPointer());
326 >
327 >      curSnapshot->statData[Stats::BOX_DIPOLE_X] = totalDipole(0);
328 >      curSnapshot->statData[Stats::BOX_DIPOLE_Y] = totalDipole(1);
329 >      curSnapshot->statData[Stats::BOX_DIPOLE_Z] = totalDipole(2);
330 >    }
331 >
332 >    //store the tau and long range potential
333      curSnapshot->statData[Stats::LONG_RANGE_POTENTIAL] = lrPot;
334      curSnapshot->statData[Stats::VANDERWAALS_POTENTIAL] = longRangePotential[VDW_POT];
335      curSnapshot->statData[Stats::ELECTROSTATIC_POTENTIAL] = longRangePotential[ELECTROSTATIC_POT];
315
316    curSnapshot->statData.setTau(tau);
336    }
337  
338  
# Line 322 | Line 341 | namespace oopse {
341      Molecule* mol;
342      Molecule::RigidBodyIterator rbIter;
343      RigidBody* rb;
344 <    
344 >    Snapshot* curSnapshot = info_->getSnapshotManager()->getCurrentSnapshot();
345 >
346      // collect the atomic forces onto rigid bodies
347 <    for (mol = info_->beginMolecule(mi); mol != NULL; mol = info_->nextMolecule(mi)) {
348 <      for (rb = mol->beginRigidBody(rbIter); rb != NULL; rb = mol->nextRigidBody(rbIter)) {
349 <        rb->calcForcesAndTorques();
347 >
348 >    for (mol = info_->beginMolecule(mi); mol != NULL;
349 >         mol = info_->nextMolecule(mi)) {
350 >      for (rb = mol->beginRigidBody(rbIter); rb != NULL;
351 >           rb = mol->nextRigidBody(rbIter)) {
352 >        Mat3x3d rbTau = rb->calcForcesAndTorquesAndVirial();
353 >        tau += rbTau;
354        }
355      }
356  
357 + #ifdef IS_MPI
358 +    Mat3x3d tmpTau(tau);
359 +    MPI_Allreduce(tmpTau.getArrayPointer(), tau.getArrayPointer(),
360 +                  9, MPI_REALTYPE, MPI_SUM, MPI_COMM_WORLD);
361 + #endif
362 +    curSnapshot->statData.setTau(tau);
363 +    curSnapshot->statData.setJv(Jv_);
364    }
365  
366 < } //end namespace oopse
366 > } //end namespace OpenMD

Comparing:
trunk/src/brains/ForceManager.cpp (property svn:keywords), Revision 770 by tim, Fri Dec 2 15:38:03 2005 UTC vs.
branches/heatflux/src/brains/ForceManager.cpp (property svn:keywords), Revision 1684 by chuckv, Thu Mar 1 19:04:10 2012 UTC

# Line 0 | Line 1
1 + Author Id Revision Date

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines