#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 | init (void) |
| void | check_omega (void) |
| void | setup_smoothinglengths (void) |
Definition in file init.c.
|
|
This routine computes the mass content of the box and compares it to the specified value of Omega-matter. If discrepant, the run is terminated. Definition at line 160 of file init.c. References All, P, and ThisTask. Referenced by init(). |
|
|
|
This function is used to find an initial smoothing length for each SPH particle. It guarantees that the number of neighbours will be between desired_ngb-MAXDEV and desired_ngb+MAXDEV. For simplicity, a first guess of the smoothing length is provided to the function density(), which will then iterate if needed to find the right smoothing length. Definition at line 197 of file init.c. References All, NODE::d, global_data_all_processes::DesNumNgb, Father, NODE::father, sph_particle_data::Hsml, NODE::len, particle_data::Mass, NODE::mass, Nodes, P, pow(), RestartFlag, SphP, and NODE::u. Referenced by init(). |
1.3.9.1