From a047e7615c4a429ecd9924f6adb897dba214e1a1 Mon Sep 17 00:00:00 2001 From: GianlucaFuwa Date: Mon, 4 Nov 2024 02:49:09 +0100 Subject: [PATCH] Add Hoelbling operator to docs --- .github/workflows/Tests.yml | 2 +- docs/src/dirac.md | 4 ++++ src/diracoperators/staggered_hoelbling.jl | 10 ++++++---- src/main/runbuild.jl | 12 ++++-------- src/main/runsim.jl | 2 ++ 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 690889f..1be7422 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -10,7 +10,7 @@ on: jobs: test: - runs-on: [ubuntu-latest, windows-latest] + runs-on: ubuntu-latest timeout-minutes: 20 strategy: fail-fast: false diff --git a/docs/src/dirac.md b/docs/src/dirac.md index f65d255..e6dee13 100644 --- a/docs/src/dirac.md +++ b/docs/src/dirac.md @@ -24,3 +24,7 @@ StaggeredDiracOperator ```@docs StaggeredEOPreDiracOperator ``` + +```@docs +StaggeredHoelblingDiracOperator +``` diff --git a/src/diracoperators/staggered_hoelbling.jl b/src/diracoperators/staggered_hoelbling.jl index 62706ba..ba277c6 100644 --- a/src/diracoperators/staggered_hoelbling.jl +++ b/src/diracoperators/staggered_hoelbling.jl @@ -1,14 +1,16 @@ """ - StaggeredHoelblingDiracOperator(f::AbstractField, mass; bc_str="antiperiodic") + StaggeredHoelblingDiracOperator{MT}(f::AbstractField, mass; bc_str="antiperiodic") StaggeredHoelblingDiracOperator(D::StaggeredHoelblingDiracOperator, U::Gaugefield) -Create a free Hölbling mass split Staggered Dirac Operator with mass `mass`. +Create a free Hölbling mass split Staggered Dirac Operator (arXiv:1009.5362) with mass +`mass`. +The type-parameter `MT` determines the kind of operator that is used: +- `MT = 1`: M12 + M34 +- `MT = 2`: M13 + M24 `bc_str` can either be `"periodic"` or `"antiperiodic"` and specifies the boundary condition in the time direction. -If `csw ≠ 0`, a clover term is included. - This object cannot be directly applied to a fermion vector, since it lacks a gauge background. A Wilson Dirac operator with gauge background is created by applying it to a `Gaugefield` diff --git a/src/main/runbuild.jl b/src/main/runbuild.jl index 0d4847f..bc6c0e9 100644 --- a/src/main/runbuild.jl +++ b/src/main/runbuild.jl @@ -142,7 +142,8 @@ function metabuild!( therm=true, ) end - # @level1("| Elapsed time:\t$(updatetime) [s] @ $(current_time())\n-") + + @level1("| Elapsed time:\t$(updatetime) [s] @ $(string(current_time()))") end end @@ -168,7 +169,7 @@ function metabuild!( numaccepts += accepted end - @level1("| Elapsed time:\t$(updatetime) [s] @ $(current_time())\n") + @level1("| Elapsed time:\t$(updatetime) [s] @ $(string(current_time()))") # all procs send their CVs to all other procs and update their copy of the bias CVs = mpi_allgather(U.CV::Float64, comm) accepteds = mpi_allgather(accepted::Bool, comm) @@ -185,13 +186,8 @@ function metabuild!( end end - # @level1("└\nTotal elapsed time:\t$(convert_seconds(runtime_all))\n@ $(current_time())") + print_total_time(runtime_all) flush(stdout) - # close all the I/O streams - close(updatemethod) - close(measurements) - close(measurements_with_flow) - close(bias) close(MetaIO.__GlobalLogger[]) isinteractive() && set_global_logger!(1) # Reset logger if run from REPL return nothing diff --git a/src/main/runsim.jl b/src/main/runsim.jl index a49d3e6..4326fa4 100644 --- a/src/main/runsim.jl +++ b/src/main/runsim.jl @@ -261,6 +261,8 @@ function metaqcd!( @level1("└ Total elapsed time:\t$(runtime_therm) [s]\n") recalc_CV!(U, bias) # need to recalc cv since it was not updated during therm + mpi_barrier() + @level1("┌ Production:") _, runtime_all = @timed begin numaccepts = 0.0