splotchviz / splotch

Splotch is a software for high performance visualization of huge scientific data
GNU General Public License v2.0
19 stars 19 forks source link

Wrong structure in Gadget-2 snapshots? #5

Closed maamari closed 4 years ago

maamari commented 4 years ago

Hello, hope you're well

I'm trying to run splotch for a default Gadget-2 snapshot and am running into the following error:

Error encountered at reader/gadget_reader.cc, line 39
(function int gadget_find_block(bifstream&, const string&))

wrong structure in GADGET file: 65536

terminate called after throwing an instance of 'PlanckError'
Aborted (core dumped)

I'd really appreciate any input you might have -- is there a conversion I am supposed to go through with the Gadget-2 snapshots that I've overlooked?

Here's my par file if that's of any help:

############################
# Input Options
############################

infile=snapshot_090

simtype=2

# Additional flags for Gadget
swap_endian=false
ptypes=2
ptype0=0
ptype1=1

# labels to visualize('XXXX','TEMP','U','RHO','MACH','DTEG','DISS')
size_fix0=0
size_label0=HSML
size_present0=1
size_fac0=0.5
intensity_label0=RHO
intensity_present0=0
intensity_min0=-11.8784
intensity_max0=-1.44456
color_label0=U
color_present0=1
color_is_vector0=FALSE
color_min0=0.152815
color_max0=6.29244

size_fix1=0
size_label1=HSMS
size_present1=1
size_fac1=0.5
intensity_label1=RHO
intensity_present1=0
intensity_min1=-11.8359
intensity_max1=-1.44703
color_label1=AGE
color_present1=1
color_is_vector1=FALSE
color_min1=-1.34248
color_max1=0

############################
# Output Options
############################

# 0: TGA uncompressed, 1: PPM ASCII, 2: PPM binary, 3: TGA runlength-compressed
pictype=0
outfile=demo.tga
xres=800

gray_absorption=0.0001
colorbar=TRUE

############################
# Visualization properties
############################
a_eq_e=t

# 0: nosort, 1: by z, 2: by value, 3: by reversed value, 4: by size
sort_type=1

minrad_pix = 1

palette0=palettes/OldSplotch.pal
brightness0=10.5

palette1=palettes/OldSplotch.pal #palettes/M51.pal
brightness1=1.5

############################
# Geometrical setup
############################
camera_x=      3244.4
camera_y=      25289.3
camera_z=      4764.7
lookat_x=      -2000
lookat_y=      5289.3
lookat_z=      4764.7
sky_x=0
sky_y=0
sky_z=1

fov=30

#EyeSeparation = 0.8

# CUDA
#use_host_as_thread =t
#host_load=30

And again my snapshot is just the default output of Gadget-2. Thanks in advance for your time

Karime