source: ThirdParty/mpqc_open/src/lib/util/psi3/libpsio/psio.gbl@ 00f983

Action_Thermostats Add_AtomRandomPerturbation Add_RotateAroundBondAction Add_SelectAtomByNameAction Adding_Graph_to_ChangeBondActions Adding_MD_integration_tests Adding_StructOpt_integration_tests AutomationFragmentation_failures Candidate_v1.6.0 Candidate_v1.6.1 ChangeBugEmailaddress ChangingTestPorts ChemicalSpaceEvaluator Combining_Subpackages Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation Enable_parallel_make_install Enhance_userguide Enhanced_StructuralOptimization Enhanced_StructuralOptimization_continued Example_ManyWaysToTranslateAtom Exclude_Hydrogens_annealWithBondGraph FitPartialCharges_GlobalError Fix_ChronosMutex Fix_StatusMsg Fix_StepWorldTime_single_argument Fix_Verbose_Codepatterns ForceAnnealing_goodresults ForceAnnealing_oldresults ForceAnnealing_tocheck ForceAnnealing_with_BondGraph ForceAnnealing_with_BondGraph_continued ForceAnnealing_with_BondGraph_continued_betteresults ForceAnnealing_with_BondGraph_contraction-expansion GeometryObjects Gui_displays_atomic_force_velocity IndependentFragmentGrids_IntegrationTest JobMarket_RobustOnKillsSegFaults JobMarket_StableWorkerPool JobMarket_unresolvable_hostname_fix ODR_violation_mpqc_open PartialCharges_OrthogonalSummation PythonUI_with_named_parameters QtGui_reactivate_TimeChanged_changes Recreated_GuiChecks RotateToPrincipalAxisSystem_UndoRedo StoppableMakroAction Subpackage_levmar Subpackage_vmg ThirdParty_MPQC_rebuilt_buildsystem TremoloParser_IncreasedPrecision TremoloParser_MultipleTimesteps Ubuntu_1604_changes stable
Last change on this file since 00f983 was 860145, checked in by Frederik Heber <heber@…>, 8 years ago

Merge commit '0b990dfaa8c6007a996d030163a25f7f5fc8a7e7' as 'ThirdParty/mpqc_open'

  • Property mode set to 100644
File size: 1.5 KB
Line 
1
2#ifndef util_class_psi3_libpsio_psio_gbl_
3#define util_class_psi3_libpsio_psio_gbl_
4
5namespace psi3 {
6namespace libpsio {
7
8#define PSIO_KEYLEN 80
9#define PSIO_MAXVOL 8
10#define PSIO_MAXUNIT 300
11#define PSIO_MAXSTR 512
12#define PSIO_PAGELEN 65536
13
14typedef unsigned long int ULI; /* For convenience */
15
16typedef struct {
17 ULI page; /* First page of entry */
18 ULI offset; /* Starting byte offset on fpage */
19} psio_address;
20
21struct psio_entry {
22 char key[PSIO_KEYLEN];
23 psio_address sadd;
24 psio_address eadd;
25 struct psio_entry *next;
26 struct psio_entry *last;
27};
28
29typedef struct psio_entry psio_tocentry;
30
31typedef struct {
32 char *path;
33 int stream;
34} psio_vol;
35
36typedef struct {
37 ULI numvols;
38 psio_vol vol[PSIO_MAXVOL];
39 psio_address tocaddress;
40 ULI toclen;
41 psio_tocentry *toc;
42} psio_ud;
43
44extern psio_ud *psio_unit;
45
46#define PSIO_ERROR_INIT 1
47#define PSIO_ERROR_DONE 2
48#define PSIO_ERROR_MAXVOL 3
49#define PSIO_ERROR_NOVOLPATH 4
50#define PSIO_ERROR_OPEN 5
51#define PSIO_ERROR_REOPEN 6
52#define PSIO_ERROR_CLOSE 7
53#define PSIO_ERROR_RECLOSE 8
54#define PSIO_ERROR_OSTAT 9
55#define PSIO_ERROR_LSEEK 10
56#define PSIO_ERROR_READ 11
57#define PSIO_ERROR_WRITE 12
58#define PSIO_ERROR_NOTOCENT 13
59#define PSIO_ERROR_TOCENTSZ 14
60#define PSIO_ERROR_KEYLEN 15
61#define PSIO_ERROR_BLKSIZ 16
62#define PSIO_ERROR_BLKSTART 17
63#define PSIO_ERROR_BLKEND 18
64#define PSIO_ERROR_IDENTVOLPATH 19
65
66#define PSIO_OPEN_NEW 0
67#define PSIO_OPEN_OLD 1
68
69}
70}
71
72#endif /* #ifndef PSIO_GBL */
Note: See TracBrowser for help on using the repository browser.