Re: Segmentation fault when trying to use named subscripting on file list returned by addfiles

From: 李嘉鹏 <lijpbasin_at_nyahnyahspammersnyahnyah>
Date: Sat May 12 2012 - 22:01:03 MDT

Wei
Using named index arrays instead of named subscripting is a good idea.

Unfortunately, another segmentation fault was produced by the script you gave me...
$ ncl no_seg_fault.ncl
 Copyright (C) 1995-2011 - All Rights Reserved
 University Corporation for Atmospheric Research
 NCAR Command Language Version 6.0.0
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
(0)A segmentation fault would follow
Segmentation fault

The error won't appear if the following lines were commented:
  5 dim = (/0, 1, 2, 3/);
  6 f->dim = dim

Machine:
Linux xxx 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

NCL package:
http://www.ncl.ucar.edu/Download/list_of_binaries.shtml
ncl_ncarg-6.0.0.Linux_RedHat_x86_64_nodap_gcc412.tar.gz

downloaded from http://www.earthsystemgrid.org/
It might be a different version from the one you are using

Regards
Jiapeng

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat May 12 22:01:14 2012

This archive was generated by hypermail 2.1.8 : Thu May 17 2012 - 13:42:02 MDT