Skip to content

Commit

Permalink
Implement CMA
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuaki1987 committed Apr 12, 2019
1 parent cfe2273 commit 4407225
Show file tree
Hide file tree
Showing 5 changed files with 517 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_definitions(-DDSFMT_MEXP=19937)

set(SOURCES FileIO.c HPhiMain.c HPhiTrans.c bitcalc.c check.c CheckMPI.c dSFMT.c diagonalcalc.c global.c log.c input.c output.c output_list.c readdef.c sz.c xsetmem.c ErrorMessage.c LogMessage.c ProgressMessage.c wrapperMPI.c splash.c time.c eigenIO.c)

set(SOURCES_MLTPLY Multiply.c mltply.c mltplySpin.c mltplyHubbard.c mltplyMPIHubbard.c mltplyMPISpin.c mltplyHubbardCore.c mltplySpinCore.c mltplyMPIHubbardCore.c mltplyMPISpinCore.c)
set(SOURCES_MLTPLY Multiply.c mltply.c mltplySpin.c mltplyHubbard.c mltplyMPIHubbard.c mltplyMPISpin.c mltplyHubbardCore.c mltplySpinCore.c mltplyMPIHubbardCore.c mltplyMPISpinCore.c mltplyMPIBoost.c)
set(SOURCES_CG CalcByLOBPCG.c )
set(SOURCES_TPQ CalcByTPQ.c FirstMultiply.c)
set(SOURCES_DIAG CalcByFullDiag.c lapack_diag.c matrixlapack.c matrixlapack_magma.c matrixscalapack.c )
Expand Down
8 changes: 4 additions & 4 deletions src/StdFace/ChainLattice.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void StdFace_Chain(
StdFace_PrintVal_d("D", &StdI->D[2][2], 0.0);
StdFace_InputSpinNN(StdI->J, StdI->JAll, StdI->J0, StdI->J0All, "J0");
StdFace_InputSpinNN(StdI->Jp, StdI->JpAll, StdI->J0p, StdI->J0pAll, "J0'");
StdFace_InputSpinNN(StdI->Jpp, StdI->JppAll, StdI->J0pp, StdI->J0ppAll, "J0'");
StdFace_InputSpinNN(StdI->Jpp, StdI->JppAll, StdI->J0pp, StdI->J0ppAll, "J0''");
/**/
StdFace_NotUsed_d("mu", StdI->mu);
StdFace_NotUsed_d("U", StdI->U);
Expand Down Expand Up @@ -261,11 +261,11 @@ void StdFace_Chain_Boost(struct StdIntList *StdI)
0.25 * StdI->J0[2][0], 0.25 * StdI->J0[2][1], 0.25 * StdI->J0[2][2]);
fprintf(fp, "# J 2\n");
fprintf(fp, "%25.15e %25.15e %25.15e\n",
0.25 * StdI->Jp[0][0], 0.25 * StdI->Jp[0][1], 0.25 * StdI->Jp[0][2]);
0.25 * StdI->J0p[0][0], 0.25 * StdI->J0p[0][1], 0.25 * StdI->J0p[0][2]);
fprintf(fp, "%25.15e %25.15e %25.15e\n",
0.25 * StdI->Jp[1][0], 0.25 * StdI->Jp[1][1], 0.25 * StdI->Jp[1][2]);
0.25 * StdI->J0p[1][0], 0.25 * StdI->J0p[1][1], 0.25 * StdI->J0p[1][2]);
fprintf(fp, "%25.15e %25.15e %25.15e\n",
0.25 * StdI->Jp[2][0], 0.25 * StdI->Jp[2][1], 0.25 * StdI->Jp[2][2]);
0.25 * StdI->J0p[2][0], 0.25 * StdI->J0p[2][1], 0.25 * StdI->J0p[2][2]);
/*
Topology
*/
Expand Down
Loading

1 comment on commit 4407225

@yyamaji
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mitsuaki1987
ありがとうございます。
ここから始めます。

Please sign in to comment.