Changeset c510a7 for pcp/src/init.c


Ignore:
Timestamp:
Apr 29, 2008, 12:19:51 PM (18 years ago)
Author:
Frederik Heber <heber@…>
Children:
e936b3
Parents:
307fd1
Message:

char lengths of 255 and MAXDUMMYSTRING replaced with define MAXSTRINGSIZE in molecuilder and pcp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pcp/src/init.c

    r307fd1 rc510a7  
    11761176  struct LatticeLevel *LevS = R->LevS;
    11771177  MPI_Comm_rank(P->Par.comm_ST_Psi, &myPE);  // Determines the rank of the calling process in the communicator
    1178   //char name[255];
     1178  //char name[MAXSTRINGSIZE];
    11791179  //sprintf(name, ".Psis-%i.all", myPE);
    11801180  //FILE *psi;
     
    15331533  /* Namen einlesen */
    15341534
    1535   P->Files.filename = MallocString(MAXDUMMYSTRING,"ReadParameters: filename");
     1535  P->Files.filename = MallocString(MAXSTRINGSIZE,"ReadParameters: filename");
    15361536        ParseForParameter(P->Call.out[ReadOut],file, "mainname", 0, 1, 1, string_type, P->Files.filename, 1, critical);
    15371537  //debug(P,"mainname");
    15381538  CreateMainname(P, filename);
    1539   P->Files.default_path = MallocString(MAXDUMMYSTRING,"ReadParameters: default_path");
     1539  P->Files.default_path = MallocString(MAXSTRINGSIZE,"ReadParameters: default_path");
    15401540  ParseForParameter(P->Call.out[ReadOut],file, "defaultpath", 0, 1, 1, string_type, P->Files.default_path, 1, critical);
    1541   P->Files.pseudopot_path = MallocString(MAXDUMMYSTRING,"ReadParameters: pseudopot_path");
     1541  P->Files.pseudopot_path = MallocString(MAXSTRINGSIZE,"ReadParameters: pseudopot_path");
    15421542  ParseForParameter(P->Call.out[ReadOut],file, "pseudopotpath", 0, 1, 1, string_type, P->Files.pseudopot_path, 1, critical);
    15431543  ParseForParameter(P->Call.out[ReadOut],file,"ProcPEGamma", 0, 1, 1, int_type, &(P->Par.proc[PEGamma]), 1, critical);
Note: See TracChangeset for help on using the changeset viewer.