Skip to content

Commit be69f56

Browse files
committed
Merge branch 'develop' into release_v0.2
2 parents 6c263bc + f3fd36f commit be69f56

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

mVMCconfig.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ EOF
3939
CC = mpifccpx
4040
F90 = mpifrtpx
4141
CFLAGS = -Kfast,parallel,ocl,openmp
42-
FFLAGS = -Kfast,parallel,ocl,openmp,ocl,auto -AT -Cpp -D FUJITSU
43-
LIBS = -SCALAPACK -SSL2BLAMP
42+
FFLAGS = -Kfast,parallel,ocl,openmp,auto -AT -Cpp -D FUJITSU
43+
LIBS = -Kfast,parallel,ocl,openmp -SCALAPACK -SSL2BLAMP
4444
SFMTFLAGS = -Kfast,ocl,nomemalias
4545
EOF
4646
elif [ ${1} = "intel-openmpi" ]; then

src/StdFace/StdFace_ModelUtil.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,7 @@ void StdFace_PrintXSF(struct StdIntList *StdI) {
817817
fprintf(fp, "H %15.5f %15.5f %15.5f\n", vec[0], vec[1], vec[2]);
818818
}
819819
}
820+
fflush(fp);
820821
fclose(fp);
821822
}/*void StdFace_PrintXSF*/
822823
/*
@@ -1018,6 +1019,7 @@ void StdFace_PrintGeometry(struct StdIntList *StdI) {
10181019
}/*for (isite = 0; isite < StdI->NsiteUC; isite++)*/
10191020
}/* for (iCell = 0; iCell < StdI->NCell; iCell++)*/
10201021
}
1022+
fflush(fp);
10211023
fclose(fp);
10221024

10231025
}/*void StdFace_PrintGeometry()*/
@@ -1218,6 +1220,7 @@ void StdFace_Proj(struct StdIntList *StdI)
12181220
}
12191221
}
12201222
}
1223+
fflush(fp);
12211224
fclose(fp);
12221225
fprintf(stdout, " qptransidx.def is written.\n");
12231226

src/StdFace/StdFace_main.c

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ static void PrintCalcMod(struct StdIntList *StdI)
201201
fprintf(fp, "InitialVecType %3d\n", iInitialVecTpye);
202202
fprintf(fp, "InputEigenVec %3d\n", InputEigenVec);
203203
fprintf(fp, "OutputEigenVec %3d\n", OutputEigenVec);
204+
fflush(fp);
204205
fclose(fp);
205206
fprintf(stdout, " calcmod.def is written.\n\n");
206207
}/*static void PrintCalcMod*/
@@ -336,6 +337,7 @@ static void PrintExcitation(struct StdIntList *StdI) {
336337
}
337338
fprintf(stdout, " pair.def is written.\n\n");
338339
}
340+
fflush(fp);
339341
fclose(fp);
340342

341343
free(fourier_r);
@@ -440,6 +442,7 @@ void PrintJastrow(struct StdIntList *StdI) {
440442
StdFace_exit(-1);
441443
}
442444

445+
fflush(fp);
443446
fclose(fp);
444447
fprintf(stdout, " jastrowidx.def is written.\n");
445448

@@ -475,6 +478,7 @@ void PrintOrb(struct StdIntList *StdI) {
475478
for (iOrb = 0; iOrb < StdI->NOrb; iOrb++)
476479
fprintf(fp, "%5d %5d\n", iOrb, 1);
477480

481+
fflush(fp);
478482
fclose(fp);
479483
fprintf(stdout, " orbitalidx.def is written.\n");
480484

@@ -546,6 +550,7 @@ static void PrintGutzwiller(struct StdIntList *StdI)
546550
printf("\nSomething wrong. \n\n");
547551
StdFace_exit(-1);
548552
}
553+
fflush(fp);
549554
fclose(fp);
550555
fprintf(stdout, " gutzwilleridx.def is written.\n");
551556

@@ -901,6 +906,7 @@ void PrintLocSpin(struct StdIntList *StdI) {
901906
for (isite = 0; isite < StdI->nsite; isite++)
902907
fprintf(fp, "%5d %5d\n", isite, StdI->locspinflag[isite]);
903908

909+
fflush(fp);
904910
fclose(fp);
905911
fprintf(stdout, " locspn.def is written.\n");
906912
}/*void PrintLocSpin*/
@@ -950,6 +956,7 @@ static void PrintTrans(struct StdIntList *StdI){
950956
creal(StdI->trans[ktrans]), cimag(StdI->trans[ktrans]));
951957
}
952958

959+
fflush(fp);
953960
fclose(fp);
954961
fprintf(stdout, " trans.def is written.\n");
955962
}/*if (StdI->Ltrans == 1)*/
@@ -992,6 +999,7 @@ static void PrintNamelist(struct StdIntList *StdI){
992999
fprintf( fp, " TransSym qptransidx.def\n");
9931000
#endif
9941001

1002+
fflush(fp);
9951003
fclose(fp);
9961004
fprintf(stdout, " namelist.def is written.\n");
9971005
}/*static void PrintNamelist*/
@@ -1062,6 +1070,7 @@ static void PrintModPara(struct StdIntList *StdI)
10621070
fprintf(fp, "NStore %d\n", StdI->NStore);
10631071
#endif
10641072

1073+
fflush(fp);
10651074
fclose(fp);
10661075
fprintf(stdout, " modpara.def is written.\n");
10671076
}/*static void PrintModPara*/
@@ -1136,6 +1145,7 @@ static void Print1Green(struct StdIntList *StdI)
11361145
fprintf(fp, "%5d %5d %5d %5d\n",
11371146
greenindx[igreen][0], greenindx[igreen][1], greenindx[igreen][2], greenindx[igreen][3]);
11381147
}
1148+
fflush(fp);
11391149
fclose(fp);
11401150

11411151
fprintf(stdout, " greenone.def is written.\n");
@@ -1261,6 +1271,7 @@ static void Print2Green(struct StdIntList *StdI) {
12611271
greenindx[igreen][0], greenindx[igreen][1], greenindx[igreen][2], greenindx[igreen][3],
12621272
greenindx[igreen][4], greenindx[igreen][5], greenindx[igreen][6], greenindx[igreen][7]);
12631273
}
1274+
fflush(fp);
12641275
fclose(fp);
12651276

12661277
fprintf(stdout, " greentwo.def is written.\n");
@@ -1482,6 +1493,7 @@ static void PrintInteractions(struct StdIntList *StdI)
14821493
fprintf(fp, "%5d %25.15f\n",
14831494
StdI->CintraIndx[kintr][0], StdI->Cintra[kintr]);
14841495
}
1496+
fflush(fp);
14851497
fclose(fp);
14861498
fprintf(stdout, " coulombintra.def is written.\n");
14871499
}/*if (StdI->LCintra == 1)*/
@@ -1507,6 +1519,7 @@ static void PrintInteractions(struct StdIntList *StdI)
15071519
fprintf(fp, "%5d %5d %25.15f\n",
15081520
StdI->CinterIndx[kintr][0], StdI->CinterIndx[kintr][1], StdI->Cinter[kintr]);
15091521
}
1522+
fflush(fp);
15101523
fclose(fp);
15111524
fprintf(stdout, " coulombinter.def is written.\n");
15121525
}/*if (StdI->LCinter == 1)*/
@@ -1532,6 +1545,7 @@ static void PrintInteractions(struct StdIntList *StdI)
15321545
fprintf(fp, "%5d %5d %25.15f\n",
15331546
StdI->HundIndx[kintr][0], StdI->HundIndx[kintr][1], StdI->Hund[kintr]);
15341547
}
1548+
fflush(fp);
15351549
fclose(fp);
15361550
fprintf(stdout, " hund.def is written.\n");
15371551
}/*if (StdI->LHund == 1)*/
@@ -1557,6 +1571,7 @@ static void PrintInteractions(struct StdIntList *StdI)
15571571
fprintf(fp, "%5d %5d %25.15f\n",
15581572
StdI->ExIndx[kintr][0], StdI->ExIndx[kintr][1], StdI->Ex[kintr]);
15591573
}
1574+
fflush(fp);
15601575
fclose(fp);
15611576
fprintf(stdout, " exchange.def is written.\n");
15621577
}
@@ -1582,6 +1597,7 @@ static void PrintInteractions(struct StdIntList *StdI)
15821597
fprintf(fp, "%5d %5d %25.15f\n",
15831598
StdI->PLIndx[kintr][0], StdI->PLIndx[kintr][1], StdI->PairLift[kintr]);
15841599
}
1600+
fflush(fp);
15851601
fclose(fp);
15861602
fprintf(stdout, " exchange.def is written.\n");
15871603
}
@@ -1744,6 +1760,7 @@ static void PrintInteractions(struct StdIntList *StdI)
17441760
}/*for (kintr = 0; kintr < StdI->nintr; kintr++)*/
17451761
}/* if (StdI->lBoost == 0)*/
17461762

1763+
fflush(fp);
17471764
fclose(fp);
17481765
fprintf(stdout, " interall.def is written.\n");
17491766
}
@@ -2009,6 +2026,7 @@ void StdFace_main(char *fname /**< [in] Input file name for the standard mode *
20092026
StdFace_exit(-1);
20102027
}
20112028
}
2029+
fflush(fp);
20122030
fclose(fp);
20132031
/*
20142032
Check the model

src/readdef.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,8 @@ int GetFileName(
12721272
if(fplist==NULL) return ReadDefFileError(cFileListNameFile);
12731273

12741274
while(fgets(ctmp2, 256, fplist) != NULL){
1275-
memset(ctmpKW, '\0', strlen(ctmpKW));
1276-
memset(ctmpFileName, '\0', strlen(ctmpFileName));
1275+
//memset(ctmpKW, '\0', strlen(ctmpKW));
1276+
//memset(ctmpFileName, '\0', strlen(ctmpFileName));
12771277
sscanf(ctmp2,"%s %s\n", ctmpKW, ctmpFileName);
12781278
if(strncmp(ctmpKW, "#", 1)==0 || *ctmp2=='\n' || (strcmp(ctmpKW, "")&&strcmp(ctmpFileName,""))==0)
12791279
{

0 commit comments

Comments
 (0)