Changeset 41
- Timestamp:
- 08/29/11 18:42:53 (21 months ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
-
pspio.h (modified) (2 diffs)
-
pspio_error.h (modified) (1 diff)
-
pspio_init.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pspio.h
r39 r41 63 63 #define RRKJ 10 64 64 65 66 65 /** 67 66 * values for NLCC - could add possibilities for different schemes … … 71 70 #define NLCC_LOUIE 2 // S. G. Louie, S. Froyen, and M. L. Cohen. Nonlinear ionic pseudopotentials in spin-density-functional calculations. Phys. Rev. B, 26:1738-1742, 1982. 72 71 72 #define MAX_LEN 256 73 73 #define STRLEN_TITLE 80 74 75 74 76 75 /** -
trunk/src/pspio_error.h
r40 r41 33 33 #define PSPIO_VALUE_ERROR 3 34 34 #define PSPIO_FILE_FORMAT_ERROR 4 35 #define PSPIO_TYPE_ERROR 5 35 36 36 37 const char * pspio_errorstr (const int pspio_errorid); -
trunk/src/pspio_init.c
r36 r41 27 27 #include "pspio.h" 28 28 29 int psp_init(char * file name, int fileformat, psp_data_t * pspio){29 int psp_init(char * file_name, int file_format, psp_data_t * psp_data){ 30 30 FILE * fp; 31 31 int ierr; 32 32 33 33 // open file 34 fp = fopen(file name, "r");34 fp = fopen(file_name, "r"); 35 35 if(fp == NULL) return PSPIO_NOFILE; 36 36 … … 40 40 break; 41 41 case ABINIT_4: 42 read_abinit_header(fp,psp_data,file_format); 42 43 break; 43 44 case ABINIT_5: 45 read_abinit_header(fp,psp_data,file_format); 44 46 break; 45 47 case ABINIT_6: 48 read_abinit_header(fp,psp_data,file_format); 46 49 break; 47 50 case ABINIT_HGH: 51 read_abinit_header(fp,psp_data,file_format); 48 52 break; 49 53 case ABINIT_GTH: 54 read_abinit_header(fp,psp_data,file_format); 50 55 break; 51 56 case ATOM: … … 56 61 break; 57 62 case UPF: 58 pspio_upf_init( pspio,fp)59 break;63 pspio_upf_init(fp,psp_data); 64 break; 60 65 default: 61 66 return PSPIO_FILE_FORMAT_ERROR;
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)