Not ASCII format

Compiler issues (Intel compiler, mpicc, etc.), data libraries and everything needed to get Serpent running is discussed here
Post Reply
aadrych
Posts: 48
Joined: Mon Feb 16, 2015 12:10 pm
Security question 1: No
Security question 2: 92

Not ASCII format

Post by aadrych » Tue Feb 17, 2015 5:07 pm

Hi,
I'm having trouble running serpent.
I've copied the code examples for the VVER on the mac version of gedit text editor. This saves as UTF-8 so it should be in ASCII format, however when I run the line
./sss vver_example (which is the name of the saved file)
the code won't run saying that the file is not in ASCII format.
Is this a problem with serpent not being able to read this file?

User avatar
Jaakko Leppänen
Site Admin
Posts: 2167
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: Not ASCII format

Post by Jaakko Leppänen » Tue Feb 17, 2015 7:05 pm

There's something in the file format that the input parser cannot process. Do you get this error for all files written by this editor?
- Jaakko

aadrych
Posts: 48
Joined: Mon Feb 16, 2015 12:10 pm
Security question 1: No
Security question 2: 92

Re: Not ASCII format

Post by aadrych » Wed Feb 18, 2015 11:59 am

Yes, apparently gedit won't let you properly edit the file formatting. I've found the solution now by using textmate instead, as I could save it with LS formatting instead of CR.
Although I'm now running into the problem that the lattice command doesn't seem to recognise that I can have 10 lattices given the input code on the vver example of:
lat 10 2 0.0 0.0 15 15 1.23
and I get the error:
Input error in parameter "lat" in file "vver_example.txt" on line 20:
- Invalid number of elements in lattice 10.
Do you know why this is?

User avatar
Jaakko Leppänen
Site Admin
Posts: 2167
Joined: Thu Mar 18, 2010 10:43 pm
Security question 2: 0
Location: Espoo, Finland
Contact:

Re: Not ASCII format

Post by Jaakko Leppänen » Thu Feb 19, 2015 12:36 pm

Entry:

Code: Select all

lat 10 2 0.0 0.0 15 15 1.23
means that you define a 15 by 15 hexagonal lattice with 1.23 cm pitch, and this lattice fills universe 10. Serpent expects that the entry is followd by a 15x15 pin map, and the error message means that this map is entered incorrectly.
- Jaakko

Post Reply