[FLASH-USERS] fidlr2 - a fix for plotting computed variables in 3D

From: Artur Gawryszczak <gawrysz@camk.edu.pl>
Date: Sun Aug 24 2003 - 07:27:45 CDT

Hi,

In 3D mode the fidlr2 plots first variable found in datafile instead of e.g. tot_vel.
It can be fixed by adding a call to create_variable in xplot3d_amr.pro or
xplot3d_amr_new.pro (I prefer Robi's xflash3d). I've just copied this call from
xplot_amr_new.pro . Here is a patch for standard xflash.

#v+
--- FLASH2.3/tools/fidlr2/xplot3d_amr_new.pro Wed Jun 4 23:12:42 2003
+++ FLASH2.3.5/tools/fidlr2/xplot3d_amr_new.pro Sun Aug 24 14:02:40 2003
@@ -200,7 +200,8 @@
 ;-----------------------------------------------------------------------------
 ; load the variable to be plotted into temporary storage
 ;-----------------------------------------------------------------------------
- temp_arr = reform(unk(0,*,*,*,*))
+ print, 'variable name = ', variable.name
+ temp_arr = create_variable(unk, variable.name)
 
     if options.abs EQ 1 then temp_arr = abs(temp_arr)
 
 ; ---- determine the bounds for the plot --------------------------------------
#v-

-- 
Cheers,
	Artur 
Received on Sun Aug 24 07:28:28 2003

This archive was generated by hypermail 2.1.8 : Thu Aug 31 2006 - 21:20:48 CDT