<br><br>On Tuesday, September 27, 2011 12:44:29 PM UTC-4, nadler wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Good evening,<div><br><div>I just wanted to restart a cp2k calculation on a Power7 machine using the *wfn file from a calculation which I performed on a cluster with Intel Xeon X5670 cpus. Now, the calculation aborts with the following message:</div></div></blockquote><div><br></div><div><br></div><div>please note that fortran unformatted/binary files are generally not </div><div>portable across platforms. the xeon is a little endian architecture</div><div>and the power 7 is big endian. the result is that numbers won't</div><div>make sense if you go from one to the other. for example a 1 will</div><div>turn into an insanely large number. also different compilers have</div><div>different ways to encode those binary files, e.g. using 32-bit or</div><div>64-bit record length indicators. </div><div><br></div><div>that all being said, some compilers have options that you can </div><div>tell how to read specific files that allow on-the-fly endian conversion</div><div>and occasionally also record length markers.</div><div><br></div><div>you'll have study the compiler documentation very carefully</div><div>on the power7 machine. perhaps you get lucky.</div><div><br></div><div>axel.</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div><div><br></div><div><div>******************************<wbr>******************************<wbr>*******************</div><div> ***                     STARTING GEOMETRY OPTIMIZATION                      ***</div><div> ***                                   BFGS                                  ***</div><div> *****************************<wbr>******************************<wbr>********************</div><div><br></div><div> Number of electrons:                                                        560</div><div> Number of occupied orbitals:                                                280</div><div> Number of molecular orbitals:                                               280</div><div><br></div><div> Number of orbital functions:                                               1092</div><div> Number of independent orbital functions:                                   1092</div><div><br></div><div> Extrapolation method: initial_guess</div><div> READ RESTART : WARNING : nspin is not equal </div><div><br></div><div> *****************************<wbr>******************************<wbr>****************</div><div> *** 16:30:58 ERRORL2 in qs_mo_types:read_mos_restart_<wbr>low processor 0    ***</div><div> *** err=-300 Reducing nspin is not possible.                            ***</div><div> *** /gpfs/apps/CP2K/SRC/cp2k/<wbr>makefiles/../src/qs_mo_types.F line   1599 ***</div><div> *****************************<wbr>******************************<wbr>****************</div><div><br></div><div><br></div><div> ===== Routine Calling Stack ===== </div><div><br></div><div>           10 read_mo_set_from_restart</div><div>            9 calculate_first_density_matrix</div><div>            8 scf_env_initial_rho_setup</div><div>            7 init_scf_run</div><div>            6 qs_energies_scf</div><div>            5 qs_forces</div><div>            4 cp_eval_at</div><div>            3 geoopt_bfgs</div><div>            2 cp_geo_opt</div><div>            1 CP2K</div><div> CP2K| Reducing nspin is not possible. /gpfs/apps/CP2K/SRC/cp2k/<wbr>makefiles/../src/qs_mo_types.F line   1599</div><div> CP2K| Abnormal program termination, stopped by process number 0</div></div><div><br></div><div>Of course, the input file is the same on both machines. A co-worker mentioned that it might be that the wfn file cannot be read since it is a binary file and, therefore, the format could be read differently on different architectures. </div><div><br></div><div>How can I use a *wfn on all architectures? Is there a way to convert it, somehow?</div><div><br></div><div>Thank you very much!</div><div><br></div><div>Cheers,</div><div>Roger</div></div></blockquote>