Print

Print


This works fine with the Cray compiler.  Must be a different one.

Cheers,
Bill


Ted Stern wrote:

>Hi Aleks,
>
>Is the "One compiler" a Cray compiler?  If so, try 'man assign' and
>investigate the '-Y on' setting.
>
>-- Ted
>
>On 7 Nov 2004 at 20:30 PST, Aleksandar Donev wrote:
>
>
>>Hello,
>>
>>I am having a problem with one compiler accepting a namelist input for
>>an array compoment of a derived type.
>>
>>I have a derived type:
>>
>>TYPE, PUBLIC :: OpenGL_Options
>>   REAL(KIND=glfloat), DIMENSION(3) :: glw_lookat=0.0_glfloat, &
>>      glw_lookfrom=(/0.0_glfloat, 0.0_glfloat, 1.0_glfloat/)
>> ...
>>ENDTYPE
>>
>>I have an object of this type inside a NAMELIST:
>>
>>TYPE(OpenGL_Options) :: glw_options
>>NAMELIST /OpenGLOptions/ glw_options, ...
>>
>>and inside the input file I have:
>>
>>&OpenGLOptions
>>glw_options%glw_lookat=0 0 0,
>>glw_options%glw_lookfrom=0 0 4,
>>/
>>
>>One compiler is telling me at runtime:
>>"Invalid character '0' in NAMELIST input"
>>Other compiler seem fine. Is there something wrong with my formatting
>>above?
>>
>>
>>
>
>--
> Ted Stern                                 Applications Group
> Cray Inc.                               office: 206-701-2182
> 411 First Avenue South, Suite 600         cell: 206-383-1049
> Seattle, WA 98104-2860                     FAX: 206-701-2500
>
> Frango ut patefaciam -- I break that I may reveal
> (The Paleontological Society motto, equally apropos for debugging)
>
>

--
Bill Long                                   [log in to unmask]
Fortran Technical Support    &              voice: 651-605-9024
Bioinformatics Software Development         fax:   651-605-9142
Cray Inc., 1340 Mendota Heights Rd., Mendota Heights, MN, 55120