Changeset 125
- Timestamp:
- 08/31/11 12:09:03 (22 months ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
-
pspio_error.c (modified) (1 diff)
-
pspio_error.h (modified) (1 diff)
-
read_upf.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/pspio_error.c
r120 r125 125 125 case PSPIO_ENOMEM: 126 126 return "malloc failed"; 127 case PSPIO_NOSUPPORT: 128 return "No supported option in the pseudo-potential file"; 127 129 default: 128 130 return "unknown error code" ; -
trunk/src/pspio_error.h
r115 r125 43 43 #define PSPIO_EGSL 6 44 44 #define PSPIO_ENOMEM 7 45 45 #define PSPIO_ENOSUPPORT 8 46 46 47 47 /********************************************************************** -
trunk/src/read_upf.c
r123 r125 66 66 narg = sscanf (line, "%2c",&kind_ps[0]); // read the kind of pseudo-potentials US|NC|PAW "Ultrasoft|Norm conserving|Projector-augmented" 67 67 PSPIO_ASSERT(narg==1, PSPIO_EIO); 68 //LIBPSP_IO can only read norm-conserving pseudo-potentials from UPF format. 68 69 if (!strncpm(kind_ps,"NC",2)) { 69 printf("LIBPSP_IO can only read norm-conserving pseudo-potentials from UPF format."); 70 return PSPIO_ETYPE; 71 } 72 70 HANDLE_ERROR(PSPIO_ENOSUPPORT); 71 } 72 73 73 if(fgets(line, MAX_STRLEN, fp) == NULL) { 74 74 HANDLE_ERROR(PSPIO_EIO);
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)