Changeset 125 for trunk/src/read_upf.c
- Timestamp:
- 08/31/11 12:09:03 (21 months ago)
- File:
-
- 1 edited
-
trunk/src/read_upf.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
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)