#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <mpi.h>
#include <unistd.h>
#include "allvars.h"
#include "proto.h"
Go to the source code of this file.
Functions | |
void | run (void) |
void | find_next_sync_point_and_drift (void) |
int | find_next_outputtime (int ti_curr) |
void | every_timestep_stuff (void) |
void | energy_statistics (void) |
Definition in file run.c.
|
This routine first calls a computation of various global quantities of the particle distribution, and then writes some statistics about the energies in the various particle components to the file FdEnergy. Definition at line 417 of file run.c. References All, state_of_system::EnergyInt, state_of_system::EnergyIntComp, state_of_system::EnergyKin, state_of_system::EnergyKinComp, state_of_system::EnergyPot, state_of_system::EnergyPotComp, FdEnergy, state_of_system::MassComp, SysState, ThisTask, and global_data_all_processes::Time. Referenced by run(). |
|
|
this function returns the next output time that is equal or larger to ti_curr < The simulated timespan is mapped onto the integer interval [0,TIMESPAN], where TIMESPAN needs to be a power of 2. Note that (1<<28) corresponds to 2^29 Definition at line 246 of file run.c. References All, global_data_all_processes::ComovingIntegrationOn, global_data_all_processes::OutputListLength, global_data_all_processes::OutputListTimes, global_data_all_processes::Timebase_interval, global_data_all_processes::TimeBegin, and global_data_all_processes::TimeMax. Referenced by begrun(). |
|
This function finds the next synchronization point of the system (i.e. the earliest point of time any of the particles needs a force computation), and drifts the system to this point of time. If the system drifts over the desired time of a snapshot file, the function will drift to this moment, generate an output, and then resume the drift. Definition at line 153 of file run.c. References All, Flag_FullStep, and P. Referenced by run(). |
|