Changeset 54
- Timestamp:
- 08/30/11 10:25:18 (21 months ago)
- Location:
- trunk/src
- Files:
-
- 3 added
- 8 deleted
- 2 edited
-
pspio.h (modified) (2 diffs)
-
pspio_qn.c (added)
-
pspio_qn.h (added)
-
pspio_qn_set.c (deleted)
-
pspio_state.c (added)
-
pspio_state.h (modified) (7 diffs)
-
pspio_state_eigenval_set.c (deleted)
-
pspio_state_label_set.c (deleted)
-
pspio_state_np_set.c (deleted)
-
pspio_state_occ_set.c (deleted)
-
pspio_state_rc_set.c (deleted)
-
pspio_state_wf_set.c (deleted)
-
pspio_state_wfp_set.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pspio.h
r47 r54 75 75 #define STRLEN_TITLE 80 76 76 77 /**78 * The quantum numbers79 */80 typedef struct{81 int n; /**< main quantum number */82 int l; /**< angular momentum quantum number */83 double j; /**< total angular momentum quantum number */84 } pspio_qn_t;85 86 87 77 /** 88 78 * Potential structure … … 93 83 gsl_spline *psp_spl; /**< spline type, for future interpolation before output to calling code */ 94 84 } pspio_potential_t; 95 96 97 /**98 *General information about the state99 */100 typedef struct{101 pspio_qn_t *qn; /**< quantum numbers n l j for this wavefunction */102 double *occ; /**< occupation of the electronic state */103 double *eigenval; /**< eigenvalue of electronic state*/104 char *label; /**< string describing the electronic state - eg 2s or 4d1.5 Â */105 double *rc; /**< cutoff radii used for pseudopotential generation */106 /// The wavefunctions107 int np; /**< number of points */108 double *wf; /**< Wavefunction */109 double *wfp; /**<Derivative of the wavefunction */110 } pspio_state_t;111 85 112 86 -
trunk/src/pspio_state.h
r49 r54 29 29 #include "pspio.h" 30 30 31 /********************************************************************** 32 * Data structures * 33 **********************************************************************/ 34 31 35 /** 32 * Sets the quantum numbers of a state. 33 * @param[inout] state: state structure to set 34 * @param[in] n: main quantum number 35 * @param[in] l: angular momentum 36 * @param[in] j: angular momentum 37 * @return error code 36 * General information about the state 38 37 */ 39 int pspio_qn_set(pspio_qn_t numbers, const int n, const int l, const double j); 38 typedef struct{ 39 pspio_qn_t *qn; /**< quantum numbers n l j for this wavefunction */ 40 double *occ; /**< occupation of the electronic state */ 41 double *eigenval; /**< eigenvalue of electronic state*/ 42 char *label; /**< string describing the electronic state - eg 2s or 4d1.5 Â */ 43 double *rc; /**< cutoff radii used for pseudopotential generation */ 44 /// The wavefunctions 45 int np; /**< number of points */ 46 double *wf; /**< Wavefunction */ 47 double *wfp; /**<Derivative of the wavefunction */ 48 } pspio_state_t; 49 50 51 /********************************************************************** 52 * Routines * 53 **********************************************************************/ 40 54 41 55 /** … … 47 61 int pspio_state_eigenval_set(pspio_state_t state, const double *eigenval); 48 62 63 49 64 /** 50 65 * Sets the labels of a state. … … 54 69 */ 55 70 int pspio_state_label_set(pspio_state_t state, const char *label); 71 56 72 57 73 /** … … 63 79 int pspio_state_np_set(pspio_state_t state, const int np); 64 80 81 65 82 /** 66 83 * Sets the occupation numbers of a state. … … 70 87 */ 71 88 int pspio_state_occ_set(pspio_state_t state, const double *occ); 89 72 90 73 91 /** … … 79 97 int pspio_state_rc_set(pspio_state_t state, const double *rc); 80 98 99 81 100 /** 82 101 * Sets the wavefunction of a state. … … 86 105 */ 87 106 int pspio_state_wf_set(pspio_state_t state, const double *wf); 107 88 108 89 109 /**
Note: See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/trac/libpspio/chrome/site/your_project_logo.png)