comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Error Handling - Emailing
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: error [message #36058 is a reply to message #35053] Wed, 06 August 2003 18:31 Go to previous messageGo to previous message
mads is currently offline  mads
Messages: 15
Registered: January 2003
Junior Member
"Andrew Cool" <andrew.cool@dsto.defence.gov.au> wrote in message
news:c6d70400.0308061416.7b199fe2@posting.google.com...
> "mads" <mads@mschumacher.com> wrote in message
news:<bgpub7$34s$1@nntp.msstate.edu>...
>> "mads" <mads@mschumacher.com> wrote in message
>> news:bgptgt$2qm$1@nntp.msstate.edu...
>>> fmt = '(a, /, i2, /, 3(f5.2, 2x), /, 2(2(f3.0, 2x), /), f3.1, /,
4(f5.2,
>> 2x,
>>> a, /),$
>>> a, /, i2, /, 3(f4.2, 2x), /, 2(2(f4.1, 2x), /), 3(f6.3, 2x), /,
5(f6.2,
>> 2x,
>>> a, /), $
>>> 4(5.2, 2x), /, 5(7.3, 2x), /, 3(a, /), 2(4(5.0, 2x), /), 2(a,2x), /)'
>>> "
>
>> But the error below is still on..............
>>
>>> a, /, i2, /, 3(f4.2, 2x), /, 2(2(f4.1, 2x), /), 3(f6.3, 2x), /,
5(f6.2,
>> 2x, a, /), $
>>> ^
>>> % Syntax error.
>>> At: /home/madhu/thesiswork/thesis.pro, Line 20
>>>
>>> What is the problem?
>
> The problem is that you're trying to cram too much onto one line, just
like
> you are in your structure definition... ;-)
>
> Why not :-
>
>
> fmt = '(a, /, i2, /, 3(f5.2, 2x), /, 2(2(f3.0, 2x), /), f3.1,)'
>
> fmt = fmt + '(/, 4(f5.2, 2x,a, /),a, /, i2, /, 3(f4.2, 2x), /,)'
>
> fmt = fmt + '( 2(2(f4.1, 2x), /), 3(f6.3, 2x), /, 5(f6.2, 2x, a, /))'
>
> fmt = fmt + '(4(5.2, 2x), /, 5(7.3, 2x), /, 3(a, /))'
>
> fmt = fmt + '(, 2(4(5.0, 2x), /), 2(a,2x), /)'
>
>
> But why such a whooping great format statement anyway?!?!

I am basically trying to create a file each time in a loop which will b read
by a fortran code which will in turn write out into a file on which i will
work. these are the parameters that will be changed and written into the
file which will b the i/p to the fortran code. do u have any suggestions?
breaking up the structure into 2 or breaking up the format code into so many
parts is ok but its just as prone to error as the method i used above is
what i feel..........any i/p on how i can make this a better structure is
appreciated..............is there any way i can change filepointer on a
formatted file like i am writing?
bye
m

>
>
> Andrew
>
> ------------------------------------------------------------ --------------
------
> Andrew D. Cool
> Electromagnetics & Propagation Group
> Intelligence, Surveillance & Reconnaissance Division
> Defence Science & Technology Organisation
> PO Box 1500, Edinburgh
> South Australia 5111
>
> Phone : 061 8 8259 5740 Fax : 061 8 8259 6673
> Email : andrew.cool@dsto.defence.gov.au
> ------------------------------------------------------------ --------------
------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: IDL variables
Next Topic: Calling C++ from IDL - update

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:03:27 PDT 2025

Total time taken to generate the page: 0.00270 seconds