|
This function computes the gravitational potential for ALL the particles. First, the (short-range) tree potential is computed, and then, if needed, the long range PM potential is added.
Definition at line 22 of file potential.c.
References All, global_data_all_processes::BunchSizeForce, global_data_all_processes::ComovingIntegrationOn, global_data_all_processes::CPU_Potential, global_data_all_processes::CPU_TreeConstruction, Exportflag, force_treebuild(), force_treeevaluate_potential(), force_treeevaluate_potential_shortrange(), global_data_all_processes::G, grav_tree_compare_key(), GravDataGet, GravDataIn, GravDataIndexTable, GravDataOut, GravDataResult, sph_particle_data::Hsml, global_data_all_processes::Hubble, gravdata_index::Index, particle_data::Mass, NTask, NumPart, gravdata_in::OldAcc, particle_data::OldAcc, global_data_all_processes::Omega0, global_data_all_processes::OmegaLambda, P, global_data_all_processes::PeriodicBoundariesOn, pmpotential_nonperiodic(), pmpotential_periodic(), gravdata_in::Pos, particle_data::Pos, particle_data::Potential, gravdata_in::Potential, pow(), second(), set_softenings(), global_data_all_processes::SofteningTable, gravdata_index::SortIndex, SphP, TAG_POTENTIAL_A, TAG_POTENTIAL_B, gravdata_index::Task, ThisTask, timediff(), TreeReconstructFlag, particle_data::Type, gravdata_in::u, and gravdata_in::w.
Referenced by run(). |