Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

potential.c File Reference

Computation of the gravitational potential of particles. More...

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <mpi.h>
#include "allvars.h"
#include "proto.h"

Go to the source code of this file.

Functions

void compute_potential (void)


Detailed Description

Computation of the gravitational potential of particles.

Definition in file potential.c.


Function Documentation

void compute_potential void   ) 
 

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().


Generated on Sun May 22 17:33:30 2005 for GADGET-2 by  doxygen 1.3.9.1