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

« back to all changes in this revision

Viewing changes to src/lib/libchkpt/symoper.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:
23
23
{
24
24
  int *symoper;
25
25
  int nirreps;
26
 
  char *key;
 
26
  char *keyword;
 
27
  keyword = chkpt_build_keyword("Cotton -> local map");
27
28
 
28
29
  nirreps = chkpt_rd_nirreps();
29
30
  symoper = init_int_array(nirreps);
30
 
  key = chkpt_build_keyword("Cotton -> local map");
31
 
  psio_read_entry(PSIF_CHKPT, key, (char *) symoper, nirreps*sizeof(int));
32
 
  free(key);
33
 
 
 
31
 
 
32
  psio_read_entry(PSIF_CHKPT, keyword, (char *) symoper, nirreps*sizeof(int));
 
33
 
 
34
  free(keyword);
34
35
  return symoper;
35
36
}
36
37
 
50
51
void chkpt_wt_symoper(int *symoper)
51
52
{
52
53
  int nirreps;
53
 
  char *key;
 
54
  char *keyword;
 
55
  keyword = chkpt_build_keyword("Cotton -> local map");
54
56
 
55
57
  nirreps = chkpt_rd_nirreps();
56
58
 
57
 
  key = chkpt_build_keyword("Cotton -> local map");
58
 
  psio_write_entry(PSIF_CHKPT, key, (char *) symoper, nirreps*sizeof(int));
59
 
  free(key);
 
59
  psio_write_entry(PSIF_CHKPT, keyword, (char *) symoper, nirreps*sizeof(int));
 
60
 
 
61
  free(keyword);
60
62
}