Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65273804
init_sub.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jun 2, 11:37
Size
687 B
Mime Type
text/x-c
Expires
Tue, Jun 4, 11:37 (2 d)
Engine
blob
Format
Raw Data
Handle
18036867
Attached To
rGEAR Gear
init_sub.c
View Options
#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
Log In to Comment