Changeset 41


Ignore:
Timestamp:
08/29/11 18:42:53 (21 months ago)
Author:
joseba
Message:
  • Added the call to Abinit init.
  • Defined maximun number of char per line
  • Changed the call to upf files
Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/pspio.h

    r39 r41  
    6363#define RRKJ 10 
    6464 
    65  
    6665/**  
    6766 * values for NLCC - could add possibilities for different schemes 
     
    7170#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.  
    7271 
     72#define MAX_LEN 256 
    7373#define STRLEN_TITLE 80 
    74  
    7574 
    7675/**  
  • trunk/src/pspio_error.h

    r40 r41  
    3333#define PSPIO_VALUE_ERROR 3 
    3434#define PSPIO_FILE_FORMAT_ERROR 4 
     35#define PSPIO_TYPE_ERROR 5 
    3536 
    3637const char * pspio_errorstr (const int pspio_errorid); 
  • trunk/src/pspio_init.c

    r36 r41  
    2727#include "pspio.h" 
    2828 
    29 int psp_init(char * filename, int fileformat, psp_data_t * pspio){ 
     29int psp_init(char * file_name, int file_format, psp_data_t * psp_data){ 
    3030  FILE * fp; 
    3131  int ierr; 
    3232   
    3333  // open file 
    34   fp = fopen(filename, "r"); 
     34  fp = fopen(file_name, "r"); 
    3535  if(fp == NULL) return PSPIO_NOFILE; 
    3636   
     
    4040    break; 
    4141  case ABINIT_4: 
     42    read_abinit_header(fp,psp_data,file_format); 
    4243    break; 
    4344  case ABINIT_5: 
     45    read_abinit_header(fp,psp_data,file_format); 
    4446    break; 
    4547  case ABINIT_6: 
     48    read_abinit_header(fp,psp_data,file_format); 
    4649    break; 
    4750  case ABINIT_HGH: 
     51    read_abinit_header(fp,psp_data,file_format); 
    4852    break; 
    4953  case ABINIT_GTH: 
     54    read_abinit_header(fp,psp_data,file_format); 
    5055    break; 
    5156  case ATOM: 
     
    5661    break; 
    5762  case UPF: 
    58     pspio_upf_init(pspio,fp) 
    59       break; 
     63    pspio_upf_init(fp,psp_data); 
     64    break; 
    6065  default: 
    6166    return PSPIO_FILE_FORMAT_ERROR; 
Note: See TracChangeset for help on using the changeset viewer.