Test+Problem+grid2cores

=Test Problem: g2c.x -- grid2cores.f90=

Run this utility as any other of the Fortran utilities, by editing an input namelist file **g2c.in** giving input and output code &in infile='snapshot.dat' outfile='cores.dat' size=1. ; size in pc aver_n=1e4                      ; average number density in cgs / code The **size** and **aver_n** parameters (size and average number density) are chosen as discussed elsewhere. A number of other parameters are available; these are printed in verbose form on execution, and should be generally understandable w/o detailed explanations; normally they don't need to be changed.

The program reads in velocity and magnetic field components but, as given, does not use them. You are welcome to implement your own criteria that include these quantities, in such a way that the predictions concerning collapse or no collapse become as precise as possible!

To read the results into IDL (in a self-describing structure), do code IDL> s=read_cores('cores.dat') code