<div dir="ltr">This is a problem of awk. Make sure you are using gawk version 4 or newer..<div><br></div><div>HTH,</div><div><br></div><div>Carlo</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-11 2:41 GMT+01:00 William Joseph Ivan DeBenedetti <span dir="ltr"><<a href="mailto:wjd74@cornell.edu" target="_blank">wjd74@cornell.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
<div>Dear QE Users,</div>
<div><br>
</div>
<div>I am attempting to convert a crystallographic information file using the cif2qe.sh shell, I am getting some errors which I could not find in the previous PW_forum, which are also not in the cif nor shell file.</div>
<div><br>
</div>
<div>Commands I have used: ./cif2qe.sh [filename] and ./cif2qe.sh [filename] > [filename].in</div>
<div><br>
</div>
<div><font face="Menlo">cif2qe.sh Version 1.2</font></div>
<div><font face="Menlo">Bash Version : <span style="font-size:11px;background-color:rgb(255,255,255)">3.2.57(1)-release</span></font></div>
<div><span style="font-size:11px;background-color:rgb(255,255,255)"><font face="Menlo">QE version 6.0</font></span></div>
<div><span style="font-size:11px;background-color:rgb(255,255,255)"><font face="Menlo">Macbook Pro i7 using iFort (2017) and MPICH 3.2</font></span></div>
<div><br>
</div>
<div>This is the error I am receiving:</div>
<div><br>
</div>
<div>
<div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">Williams-MacBook-Pro-2:tools WJIDeBenedetti$ ./cif2qe.sh EDI</span></div>
<div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">awk: syntax error at source line 27</span></div>
<div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"> context is</span></div>
<div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures"><span class="m_6209550642531579868Apple-tab-span" style="white-space:pre-wrap"></span>>>> KeyW[0][ <<< 1] ="_cell_length_a"; KeyW[1][1]="" </span></div>
<div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">awk: illegal statement at source line 28</span></div>
<div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;background-color:rgb(255,255,255)">
<span style="font-variant-ligatures:no-common-ligatures">awk: illegal statement at source line 28</span></div>
</div>
<div><span style="font-variant-ligatures:no-common-ligatures"><br>
</span></div>
<div><br>
<div>The following is the crystallographic information file:</div>
<div><br>
</div>
<div>
<div>data_EDI</div>
<div>#*****************************<wbr>******************************<wbr>***************</div>
<div>#</div>
<div># CIF taken from the IZA-SC Database of Zeolite Structures</div>
<div># Ch. Baerlocher and L.B. McCusker</div>
<div># Database of Zeolite Structures: <a href="http://www.iza-structure.org/databases/" target="_blank">
http://www.iza-structure.org/<wbr>databases/</a></div>
<div>#</div>
<div># All data on this site have been placed in the public domain.</div>
<div># If you use this work in a scientific publication, you are obligated to</div>
<div># cite its origin.</div>
<div>#</div>
<div># The atom coordinates and the cell parameters were optimized with DLS76</div>
<div># assuming a pure SiO2 composition.</div>
<div>#</div>
<div>#*****************************<wbr>******************************<wbr>***************</div>
<div><br>
</div>
<div>_cell_length_a 6.9260(0)</div>
<div>_cell_length_b 6.9260(0)</div>
<div>_cell_length_c 6.4100(0)</div>
<div>_cell_angle_alpha 90.0000(0)</div>
<div>_cell_angle_beta 90.0000(0)</div>
<div>_cell_angle_gamma 90.0000(0)</div>
<div><br>
</div>
<div>_symmetry_space_group_name_H-M 'P -4 m 2'</div>
<div>_symmetry_Int_Tables_number 115</div>
<div>_symmetry_cell_setting tetragonal</div>
<div><br>
</div>
<div>loop_</div>
<div>_symmetry_equiv_pos_as_xyz</div>
<div>'+x,+y,+z'</div>
<div>'-y,+x,-z'</div>
<div>'-x,-y,+z'</div>
<div>'+y,-x,-z'</div>
<div>'-x,+y,+z'</div>
<div>'+y,+x,-z'</div>
<div>'+x,-y,+z'</div>
<div>'-y,-x,-z'</div>
<div><br>
</div>
<div>loop_</div>
<div>_atom_site_type_symbol</div>
<div>_atom_site_type_symbol</div>
<div>_atom_site_fract_x</div>
<div>_atom_site_fract_y</div>
<div>_atom_site_fract_z</div>
<div> O1 O 0.1898 0.0000 0.3550</div>
<div> O2 O 0.1897 0.1897 0.0000</div>
<div> O3 O 0.5000 0.0000 0.1183</div>
<div> T1 Si 0.2679 0.0000 0.1184</div>
<div> T2 Si 0.0000 0.0000 0.5000</div>
</div>
<div><br>
</div>
<div>I have tried a few other CIFs from other databases with no luck. Has anyone else experienced this?</div>
<div><br>
</div>
<div>Many thanks,</div>
<div><br>
</div>
<div>
<div>Will DeBenedetti</div>
<div>Cornell University</div>
</div>
<br>
</div>
</div>
<br>______________________________<wbr>_________________<br>
Pw_forum mailing list<br>
<a href="mailto:Pw_forum@pwscf.org">Pw_forum@pwscf.org</a><br>
<a href="http://pwscf.org/mailman/listinfo/pw_forum" rel="noreferrer" target="_blank">http://pwscf.org/mailman/<wbr>listinfo/pw_forum</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><pre>------------------------------------------------------------
Prof. Carlo Nervi <a href="mailto:carlo.nervi@unito.it" target="_blank">carlo.nervi@unito.it</a> <a>Tel:+39</a> 0116707507/8
Fax: +39 0116707855 - Dipartimento di Chimica, via
P. Giuria 7, 10125 Torino, Italy. <a href="http://lem.ch.unito.it/" target="_blank">http://lem.ch.unito.it/</a><br></pre></div></div>
</div>