c_unique_data Struct Reference

#include <cglobals.h>

List of all members.

Public Attributes

float sumfile [NBACK][NCOLMAX][NFMAX+1]
int predark
int prestar


Detailed Description

this struct has no fortran counter part.

Member Data Documentation

number of particles before the DM particles. Use for loops over dark matter particles: for (i=cd.predark, i < cd.predark+header_.npart[types_.itdark], i++)

number of particles before the star particles. Use for loops over star particles: for (i=cd.prestar, i < cd.prestar+header_.npart[types_.itstar], i++)

float c_unique_data::sumfile[NBACK][NCOLMAX][NFMAX+1]

as we cannot use the sumfile from the all_ struct because that has been filled in the fortran way (stored by columns) we choose an easy way of coping with this: a duplicate of the sumfile, but now created by C. We need this to be able to use e.g. pointers to a sumfile column.

fill this array using fill_c_sumfile();

NOTE: this is a float, the "normal" sumfile is double

FURTHER NOTE: THE ORDER OF THE INDICES IS DIFFERENT FROM THE OTHER SUMFILE WHAT WE SEE AS COLUMNS IN THE FILE IS PLACED LAST SO WE CAN POINT POINTERS TO IT order here: file | column | row also note: row starts at 0, like in fortran, but the col and the file start at 0 (i.e. the first file is 0) whilst in fortran those start at 1.

another NOTE: a column in the sumfile corresponds to a column in cd.sumfile with index -2! (time column is 0, column next to time is 1, ..., in the files there is a column with the snapshot number which is not present in cd.sumfile).

The easiest way to find column numbers: check the number in headers.txt and subtract 2.


The documentation for this struct was generated from the following file:

Generated on Fri Oct 16 18:59:58 2009 for HYPLOT by  doxygen 1.5.8