source: branches/profile/PROBE_COM/PT_extern.c

Last change on this file was 8757, checked in by westram, 12 years ago
  • probe match no longer calculates different results depending on whether PT_PDC-object was generated or not
    • bonds and split are members of PT_LOCS now
      • now they always exist, so several conditional calculations concerning weighted mismatches are done unconditionally now
    • removed hacks (see [8755], [8741])
  • probe match also depended on split-threshold (as specified in probe-design export window)
    • made that value as well available in probe-match-expert-window
    • renamed awar
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 925 bytes
Line 
1#include <cstdio>
2#include <cstdlib>
3#include <cstring>
4#include "PT_server.h"
5#include "C/server.h"
6#include <aisc_server_proto.h>
7#include <aisc_server_extern.h>
8#include <import_proto.h>
9
10// this source is compiled as C++ !!!
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16    int pt_init_bond_matrix(PT_local *THIS);
17
18#ifdef __cplusplus
19}
20#endif
21
22int init_bond_matrix(PT_local *THIS) {
23    pt_init_bond_matrix(THIS);
24    return 0;
25}
26
27void pt_destroy_locs(PT_local *THIS) {
28    destroy_PT_local(THIS);
29}
30
31int pt_init_socket(PT_local *THIS) {
32    aisc_add_destroy_callback((aisc_destroy_callback)pt_destroy_locs, (long)THIS);
33    return 0;
34}
35
36void pt_destroy_socket(PT_local *) {
37    aisc_remove_destroy_callback();
38}
39
40aisc_string get_LOCS_ERROR(PT_local *THIS) {
41    static char *error_buf = 0;
42    if (error_buf) free(error_buf);
43    error_buf = THIS->ls_error;
44    THIS->ls_error = (char *)strdup("");
45    return error_buf;
46}
Note: See TracBrowser for help on using the repository browser.