Re: [fluka-discuss]: Re: converting ascii to vxl

From: <me_at_marychin.org>
Date: Tue, 21 Feb 2017 06:01:38 +0800

-------- Original Message --------
Subject: Re: [fluka-discuss]: Re: converting ascii to vxl
Date: 2017-02-19 15:53
 From: Ševčik Aleksandras <aleksandras.sevcik_at_ktu.edu>
To: "me_at_marychin.org" <me_at_marychin.org>
Cc: "owner-fluka-discuss_at_mi.infn.it" <owner-fluka-discuss_at_mi.infn.it>



  Hi Mary,

Yes, I suspected something like that.
I greatly appreciate your comprehensive input, thank you very much for
the answer!

Alex
-------------------------

FROM: me_at_marychin.org <me_at_marychin.org>
SENT: Sunday, February 19, 2017 6:26:16 AM
TO: Ševčik Aleksandras
CC: owner-fluka-discuss_at_mi.infn.it
SUBJECT: Re: [fluka-discuss]: Re: converting ascii to vxl

Hello again Alex,

I forgot to add that the error you reported was a runtime eror, not a
compile-time error.

If it was a compile-time error:
- we wouldn't have seen '../../../lib/crtn.o' at the end of compilation;
- we wouldn't have got the file 'golem' at all.

During runtime, your golem.f got stuck at the line
READ(30,*) MYARRAY
because it couldn't fit what it read from test.dat into the 256x256x1
array.

:) mary

On 2017-02-19 13:15, me_at_marychin.org wrote:
> Dear Alex,
>
> dos2unix will solve your problem. For the sake of completeness, I
> paste the output here:
>
> $ dos2unix test.dat
> $ $FLUPRO/lfluka golem.f -o golem
> $ ./golem
> organ_index, voxel_number 1 1
> organ_index, voxel_number 98 2
> organ_index, voxel_number 4 3
> organ_index, voxel_number 2 4
> organ_index, voxel_number 84 5
> organ_index, voxel_number 124 6
> organ_index, voxel_number 83 7
> organ_index, voxel_number 89 8
> organ_index, voxel_number 117 9
> organ_index, voxel_number 95 10
> organ_index, voxel_number 23 11
> NO,MO 11 124
>
> And here's the explanation:
> In DOS/Windows text files a line-break consists of two characters: a
> Carriage Return (CR) plus a Line Feed (LF). In Unix a line-break is a
> single character: just the Line Feed (LF).
>
> :) mary
>
> On 2017-02-18 23:53, Ševčik Aleksandras wrote:
>> Additional comment:
>>
>> It seems that the problem is due to incorrectly formatted text file
>>
>> A.
>> -------------------------
>>
>> FROM: Ševčik Aleksandras
>> SENT: Saturday, February 18, 2017 2:03:06 PM
>> TO: Alfredo Ferrari
>> SUBJECT: converting ascii to vxl
>>
>> Dear experts,
>>
>> I have 256x256 text image with certain values which represents the
>> various regions. Following the manual and previous instructions
>> provided in the other topics I am trying to convert it to .vxl file.
>>
>> I am using the writegolem.f example with the following parameters:
>> NX=256 NY=256 NZ=1, however, when compiling, I am getting the
>> following error:
>>
>> "
>>
>> invalid number: incomprehensible list input
>> apparent state: unit 30 named test.dat
>> last format: list io
>> "
>>
>> Both the text image file and code file attached. Would somebody help
>> me to identify my mistake?
>>
>> Kinds thanks,
>>
>> Alex

__________________________________________________________________________
You can manage unsubscription from this mailing list at https://www.fluka.org/fluka.php?id=acc_info
Received on Tue Feb 21 2017 - 00:29:49 CET

This archive was generated by hypermail 2.3.0 : Tue Feb 21 2017 - 00:29:52 CET