-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from issp-center-dev/update_stdface
Update stdface
- Loading branch information
Showing
4 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
Submodule submodule
updated
4 files
+2 −2 | src/Ladder.c | |
+2 −2 | src/SquareLattice.c | |
+22 −20 | src/StdFace_ModelUtil.c | |
+73 −36 | src/StdFace_main.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/sh -e | ||
|
||
mkdir -p lobcg_spingc_Sy/ | ||
cd lobcg_spingc_Sy | ||
|
||
cat > stan.in <<EOF | ||
model = SpinGC | ||
method = CG | ||
lattice = Honeycomb | ||
W = 2 | ||
L = 2 | ||
J0y = -3 | ||
J0xy = 3 | ||
J1xz = 1 | ||
J2yz = 2 | ||
h = 0.2 | ||
Gamma = 0.5 | ||
exct = 1 | ||
LanczosEps = 16 | ||
EOF | ||
|
||
${MPIRUN} ../../src/HPhi -sdry stan.in | ||
cat > trans.def <<EOF | ||
=== | ||
N 2 | ||
=== | ||
=== | ||
=== | ||
0 0 0 1 0.5 0.5 | ||
0 1 0 0 0.5 -0.5 | ||
EOF | ||
|
||
${MPIRUN} ../../src/HPhi -e namelist.def | ||
|
||
# Check value | ||
|
||
cat > reference.dat <<EOF | ||
0 | ||
-5.5492800776068707 | ||
0.0000000000000000 | ||
-0.2767359441047553 | ||
EOF | ||
paste output/zvo_energy.dat reference.dat > paste.dat | ||
diff=`awk 'BEGIN{diff=0.0} {diff+=sqrt(($2-$3)*($2-$3))} END{printf "%8.6f", diff}' paste.dat` | ||
test "${diff}" = "0.000000" | ||
|
||
exit $? |
Empty file.