[ncl-install] Error while using pre-compiled NCL binaries
Mary Haley
haley at ucar.edu
Tue Jan 3 09:34:28 MST 2017
Sagar,
If you want to remove this restriction, you need to do two things. Assuming
$NCARG represents the top level directory of the NCL source code:
1) Edit the file $NCARG/ni/src/lib/nfpfort/wrf_write_wps.f and change this
line:
character(len=9) FIELD
to whatever length you want.
2) Edit the file $NCARG/ni/src/lib/nfp/wrfwpsW.c and change this line:
int FIELD_LEN=9;
to match the same length that you used in the Fortran file.
You then need to rebuild NCL, which is not trivial, unless you've already
got a build of NCL working. If you already have a build that you haven't
done a "make clean" on, then you can update your NCL simply by typing:
cd $NCARG/ni/src
make all install
I don't know if making a change like this to the WPS intermediate file is
going to be a problem. Again, wrfhelp is CC'ed here in case they have
anything to add.
--Mary
On Mon, Jan 2, 2017 at 10:57 PM, Sagar Kashid <sag123kas at gmail.com> wrote:
> Mary,
>
> Thank you so much for your reply.
> I do agree with your judgement that *"underlying Fortran routine that
> this function is based on also has the same restriction"*, but one of my
> colleague asked me to do following source code modification to get rid off
> this problem as follows,
>
>
>
>
>
>
>
> *path: in ncl source code directory " /ni/src/lib/nfp/wrfwpsW.c "line
> number 34 NrmQuark *field; int FIELD_LEN=9; ****************this is the
> line where he asked me to change number 9 to 40 or 45? char
> c_field[FIELD_LEN+1]; *
>
> Do you also think that this would help me to solve the issue? As it
> requires to install NCL from the source code
>
> Kindly suggest
>
> On Mon, Jan 2, 2017 at 7:32 PM, Mary Haley <haley at ucar.edu> wrote:
>
>> Sagar,
>>
>> The error message is telling you exactly what the problem is. The second
>> argument ("field") to wrf_write_wps_int must be 9 or fewer characters.
>>
>> I'm not sure why this restriction is in place, but I do know that the
>> underlying Fortran routine that this function is based on also has the same
>> restriction.
>>
>> You can learn more about this format from this link:
>>
>> http://www2.mmm.ucar.edu/wrf/OnLineTutorial/Basics/IM_files/IM_wps.htm
>>
>> I've CC'ed wrfhelp in case they want to add more to my answer.
>>
>> --Mary
>>
>>
>> On Wed, Dec 28, 2016 at 12:53 AM, Sagar Kashid <sag123kas at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> When I am running ncl (version 6.3.0), pre-compiled with intel compilers
>>> I got the following error.
>>>
>>> fatal:wrf_wps_write_int: the field string is greater than 9 characters
>>>
>>> Kindly provide me solution for above error
>>>
>>>
>>> Regards,
>>>
>>> Sagar Kashid
>>> Pune, India
>>>
>>> _______________________________________________
>>> ncl-install mailing list
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>>>
>>>
>>
>
>
> --
> Regards,
>
> Sagar Kashid
> http://bateankahisi.blogspot.com/
>
> Know yourself and you will win all battles.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20170103/85becff5/attachment.html
More information about the ncl-install
mailing list