~ubuntu-branches/ubuntu/vivid/psicode/vivid

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/rref.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2008-06-07 16:49:57 UTC
  • mfrom: (2.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080607164957-8pifvb133yjlkagn
Tags: 3.3.0-3
* debian/rules (DEB_MAKE_CHECK_TARGET): Do not abort test suite on
  failures.
* debian/rules (DEB_CONFIGURE_EXTRA_FLAGS): Set ${bindir} to /usr/lib/psi.
* debian/rules (install/psi3): Move psi3 file to /usr/bin.
* debian/patches/07_464867_move_executables.dpatch: New patch, add
  /usr/lib/psi to the $PATH, so that the moved executables are found.
  (closes: #464867)
* debian/patches/00list: Adjusted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
*/
5
5
 
6
6
#include <stdio.h>
 
7
#include <stdlib.h>
7
8
#include "chkpt.h"
8
9
#include <psifiles.h>
9
10
#include <libpsio/psio.h>
30
31
{
31
32
  char *key;
32
33
  double **Rref;
 
34
  char *keyword;
 
35
  keyword = chkpt_build_keyword("Transmat to reference frame");
33
36
 
34
37
  Rref = block_matrix(3,3);
35
38
 
36
 
  key = chkpt_build_keyword("Transmat to reference frame");
37
 
 
38
 
  psio_read_entry(PSIF_CHKPT, key, (char *) Rref[0], sizeof(double)*9);
39
 
  free(key);
40
 
 
 
39
  psio_read_entry(PSIF_CHKPT, keyword, (char *) Rref[0], sizeof(double)*9);
 
40
 
 
41
  free(keyword);
41
42
  return Rref;
42
43
}
43
44
 
61
62
 
62
63
void chkpt_wt_rref(double **Rref)
63
64
{
64
 
  char *key;
65
 
  key = chkpt_build_keyword("Transmat to reference frame");
66
 
  psio_write_entry(PSIF_CHKPT, key, (char *) Rref[0], sizeof(double)*9);
67
 
  free(key);
 
65
  char *keyword;
 
66
  keyword = chkpt_build_keyword("Transmat to reference frame");
 
67
 
 
68
  psio_write_entry(PSIF_CHKPT, keyword, (char *) Rref[0], sizeof(double)*9);
 
69
 
 
70
  free(keyword);
68
71
}