<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I'm trying to contour a scalar field with NCL. Previous emails about
this problem (<a
href="http://mailman.ucar.edu/pipermail/ncl-talk/2014-October/001165.html">see
here</a>) seem to be related to the version of GCC. However, my
version of GCC (4.8.1) is compatible with my version of NCL (6.2.1).
So I think this is a different problem.<br>
<br>
Here's a simple script I use to re-create the problem:<br>
<blockquote><small><tt>load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</tt><tt><br>
</tt><tt>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</tt><tt><br>
</tt><tt>load
"$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</tt><tt><br>
</tt><tt>begin</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> fig_type = "x11"</tt><tt><br>
</tt><tt> fig_file = "test.sf"</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt>; make up some random data</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt><br>
</tt><tt> lat = (/-10,-10,-10, 0, 0, 0, 10, 10, 10/)</tt><tt><br>
</tt><tt> lon = (/ 50, 60, 70, 50, 60, 70, 50, 60, 70/)</tt><tt><br>
</tt><tt><br>
</tt><tt> lat@units = "degrees north"</tt><tt><br>
</tt><tt> lon@units = "degrees east"</tt><tt><br>
</tt><tt><br>
</tt><tt> data = fspan(0,100,dimsizes(lat))</tt><tt><br>
</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt>; Create plot</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt> wks = gsn_open_wks(fig_type,fig_file)</tt><tt><br>
</tt><tt> plot = new(1,graphic)</tt><tt><br>
</tt><tt><br>
</tt><tt> res = True</tt><tt><br>
</tt><tt> res@cnFillOn = True</tt><tt><br>
</tt><tt> res@cnLinesOn = False</tt><tt><br>
</tt><tt> res@sfYArray = lat</tt><tt><br>
</tt><tt> res@sfXArray = lon</tt><tt><br>
</tt><tt><br>
</tt><tt> res@mpMinLatF = -40.</tt><tt><br>
</tt><tt> res@mpMaxLatF = 40.</tt><tt><br>
</tt><tt> res@mpMinLonF = 40.</tt><tt><br>
</tt><tt> res@mpMaxLonF = 110.</tt><tt><br>
</tt><tt><br>
</tt><tt> plot(0) = gsn_csm_contour_map(wks,data,res)</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt>;====================================================================================================</tt><tt><br>
</tt><tt>end</tt></small><br>
</blockquote>
If I run that script, I get this error:<br>
<blockquote><tt>dyld: lazy symbol binding failed: Symbol not found:
_GOMP_parallel</tt><tt><br>
</tt><tt> Referenced from: /Users/whannah/NCL/bin/ncl</tt><tt><br>
</tt><tt> Expected in: /usr/local/lib/libgomp.1.dylib</tt><tt><br>
</tt><tt><br>
</tt><tt>dyld: Symbol not found: _GOMP_parallel</tt><tt><br>
</tt><tt> Referenced from: /Users/whannah/NCL/bin/ncl</tt><tt><br>
</tt><tt> Expected in: /usr/local/lib/libgomp.1.dylib</tt><tt><br>
</tt><tt><br>
</tt><tt>Trace/BPT trap: 5</tt><br>
</blockquote>
Another post about this online mentions the use of <i>DYLD_LIBRARY_PATH</i>,
but I don't have this set.<br>
<br>
Any ideas on how to diagnose the problem here?<br>
<br>
Thanks,<br>
Walter<br>
</body>
</html>