Page MenuHomec4science

init_sub.c
No OneTemporary

File Metadata

Created
Sun, Jun 2, 11:37

init_sub.c

#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mpi.h>
#include "allvars.h"
#include "proto.h"
#ifdef PY_INTERFACE
/*! 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.
*/
void setup_smoothinglengths_sub(void)
{
/* before, we can not use the tree, as Q particles do not belong to them... */
density_sub();
}
#endif /*PY_INTERFACE*/

Event Timeline