Re: Error 778: failed with adding gas particles

From: Michaela Voth <michaela.voth_at_hs.uni-hamburg.de>
Date: Mon, 3 Mar 2014 12:15:36 +0100 (CET)

Thx for answering and the help.
I also think that something is wrong with the end of my IC-file. I agree,
that it must be either the size of the internal energy block or something
is missing, but i dont have an idea what is wrong in detail. In my Error
is seen that the Internal Energy block exists and, that the right number
of gas-particles are recognized. But i do not understand, what size Gadget
needs here: i tried n_gas+n_halo and also just the gas particles (like it
is explained in the user guide: p32: "6.Internal energy: float u[NGas];"
...). But still the same mistake appears. In case is add the Density
Block, also the same mistake appears, too. Even if i test it for both
sizes (n_gas+n_halo and just the gas again). That means that the mistake
is in the Internal energy Block, right?
So, what must be the size of these two Bocks and do i really need the
density block, too if ngas>0 (i thought this block is optional, like it is
explained in the User Guide p.35) ?

Cheers,
Michaela

>
> Dear Michaela,
>
> This is a typical io error (see io.c).
> This probably means that your initial condition file is not set-up
> correctly.
> One possibility could be that either the density or the specific energy of
> gas particles is missing in your file.
>
> Cheers,
>
> yves
>
>
>
> On 02/28/2014 01:25 PM, Michaela Voth wrote:
>> Hi all,
>> I'm trying to simulate a Cluster with dark matter and gas particles. I
>> have previously run it with dark matter only and that works fine, but
>> now
>> i added the gas and i could not make it run. I got an end-of-file error
>> after the InternalEnergy-Block, although the particle numbers seem to be
>> right ? Any idea where my IC file may is corrupt? What did I do wrong?
>>
>> The error occurs in the following way:
>>
>> reading file `..cluster.dat' on task=0 (contains 110008 particles.)
>> distributing this file to tasks 0-0
>> Type 0 (gas): 10000 (tot= 0000010000) masstab=0.12
>> Type 1 (halo): 100008 (tot= 0000100008) masstab=0.85
>> Type 2 (disk): 0 (tot= 0000000000) masstab=0
>> Type 3 (bulge): 0 (tot= 0000000000) masstab=0
>> Type 4 (stars): 0 (tot= 0000000000) masstab=0
>> Type 5 (bndry): 0 (tot= 0000000000) masstab=0
>>
>> task=0 blocknr=0 bytes_per_blockelement=12 npart=110008
>> task=0 blocknr=1 bytes_per_blockelement=12 npart=110008
>> task=0 blocknr=2 bytes_per_blockelement=4 npart=110008
>> task=0 blocknr=3 bytes_per_blockelement=4 npart=0
>> task=0 blocknr=4 bytes_per_blockelement=4 npart=10000
>> I/O error (fread) on task=0 has occured: end of file
>> task 0: endrun called with an error level of 778
>>
>> Thanks for any help!
>> Michaela
>>
>>
>>
>>
>> -----------------------------------------------------------
>>
>> If you wish to unsubscribe from this mailing, send mail to
>> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe
>> gadget-list
>> A web-archive of this mailing list is available here:
>> http://www.mpa-garching.mpg.de/gadget/gadget-list
>
>
> --
>
> ---------------------------------------------------------------------
> Dr. Yves Revaz
> Laboratory of Astrophysics
> Ecole Polytechnique Fédérale de Lausanne (EPFL)
> Observatoire de Sauverny Tel : +41 22 379 24 28
> 51. Ch. des Maillettes Fax : +41 22 379 22 05
> 1290 Sauverny e-mail : Yves.Revaz_at_epfl.ch
> SWITZERLAND Web : http://people.epfl.ch/yves.revaz
> ---------------------------------------------------------------------
>
>
>
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> minimalist_at_MPA-Garching.MPG.de with a subject of: unsubscribe gadget-list
> A web-archive of this mailing list is available here:
> http://www.mpa-garching.mpg.de/gadget/gadget-list
>
Received on 2014-03-03 12:15:41

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:32 CET