/********************************************************************** TRAN_Input_std.c: TRAN_Input_std.c is a subroutine to read the input data. Log of TRAN_Input_std.c: 24/July/2008 Released by H.Kino and T.Ozaki ***********************************************************************/ #include #include #include #include #include "Inputtools.h" #include #include "tran_prototypes.h" #include "tran_variables.h" #define MAXBUF 256 void TRAN_Input_std( MPI_Comm comm1, int Solver, /* input */ int SpinP_switch, char *filepath, double kBvalue, double TRAN_eV2Hartree, double Electronic_Temperature, /* output */ int *output_hks ) { FILE *fp; int i,po; int i_vec[20],i_vec2[20]; double r_vec[20]; char *s_vec[20]; char buf[MAXBUF]; int myid; /* S MitsuakiKAWAMURA*/ int TRAN_Analysis_Dummy; /* E MitsuakiKAWAMURA*/ MPI_Comm_rank(comm1,&myid); /**************************************************** parameters for TRANSPORT ****************************************************/ input_logical("NEGF.Output_HKS",&TRAN_output_hks,0); *output_hks = TRAN_output_hks; /* printf("NEGF.OutputHKS=%d\n",TRAN_output_hks); */ input_string("NEGF.filename.HKS",TRAN_hksoutfilename,"NEGF.hks"); /* printf("TRAN_hksoutfilename=%s\n",TRAN_hksoutfilename); */ input_logical("NEGF.Output.for.TranMain",&TRAN_output_TranMain,0); if ( Solver!=4 ) { return; } /**** show transport credit ****/ TRAN_Credit(comm1); input_string("NEGF.filename.hks.l",TRAN_hksfilename[0],"NEGF.hks.l"); input_string("NEGF.filename.hks.r",TRAN_hksfilename[1],"NEGF.hks.r"); /* read data of leads */ TRAN_RestartFile(comm1, "read","left", filepath,TRAN_hksfilename[0]); TRAN_RestartFile(comm1, "read","right",filepath,TRAN_hksfilename[1]); /* check b-, and c-axes of the unit cell of leads. */ po = 0; for (i=2; i<=3; i++){ if (1.0e-10