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

« back to all changes in this revision

Viewing changes to src/bin/ccdensity/td_cleanup.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:
 
1
#include <stdio.h>
 
2
#include <stdlib.h>
 
3
#include <libdpd/dpd.h>
 
4
#define EXTERN
 
5
#include "globals.h"
 
6
 
 
7
void td_cleanup(void)
 
8
{
 
9
  psio_close(CC_TMP,0);
 
10
  psio_close(EOM_TMP,0);
 
11
  psio_close(EOM_TMP0,0);
 
12
  psio_close(EOM_TMP1,0);
 
13
  psio_close(CC_GLG,0);
 
14
  psio_close(CC_GL,0);
 
15
  psio_close(CC_GR,0);
 
16
 
 
17
  psio_open(CC_TMP,PSIO_OPEN_NEW);
 
18
  psio_open(EOM_TMP,PSIO_OPEN_NEW);
 
19
  psio_open(EOM_TMP0,PSIO_OPEN_NEW);
 
20
  psio_open(EOM_TMP1,PSIO_OPEN_NEW);
 
21
  psio_open(CC_GLG,PSIO_OPEN_NEW);
 
22
  psio_open(CC_GL,PSIO_OPEN_NEW);
 
23
  psio_open(CC_GR,PSIO_OPEN_NEW);
 
24
 
 
25
  if((params.ref==0) || (params.ref==1)) {
 
26
    free_block(moinfo.ltd);
 
27
    free_block(moinfo.rtd);
 
28
  }
 
29
  else if(params.ref==2) {
 
30
    free_block(moinfo.ltd_a);
 
31
    free_block(moinfo.ltd_b);
 
32
    free_block(moinfo.rtd_a);
 
33
    free_block(moinfo.rtd_b);
 
34
  }
 
35
 
 
36
  return;
 
37
}