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

longrange.c File Reference

driver routines for computation of long-range gravitational PM force More...

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

Go to the source code of this file.

Functions

void long_range_init (void)
void long_range_init_regionsize (void)
void long_range_force (void)


Detailed Description

driver routines for computation of long-range gravitational PM force

Definition in file longrange.c.


Function Documentation

void long_range_force void   ) 
 

This function is a driver routine for the long-range PM force computation. It calls periodic and/or non-periodic FFT routines as needed for the present simulation set-up.

Definition at line 56 of file longrange.c.

References All, global_data_all_processes::ComovingIntegrationOn, endrun(), particle_data::GravPM, global_data_all_processes::Hubble, global_data_all_processes::Omega0, global_data_all_processes::OmegaLambda, P, pm_init_regionsize(), pm_setup_nonperiodic_kernel(), pmforce_nonperiodic(), pmforce_periodic(), and particle_data::Pos.

Referenced by compute_accelerations().

void long_range_init void   ) 
 

Calls initializiation routines of periodic or/and non-periodic FFT routines.

Definition at line 20 of file longrange.c.

References pm_init_nonperiodic(), and pm_init_periodic().

Referenced by begrun().

void long_range_init_regionsize void   ) 
 

This function calls subroutines that determine the spatial region covered by the PM mesh.

Definition at line 36 of file longrange.c.

References pm_init_regionsize(), pm_setup_nonperiodic_kernel(), and RestartFlag.

Referenced by begrun().


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