Skip to content

Commit 467c706

Browse files
linneamknicolasbock
authored andcommitted
Unnecessary files removed and updated trace_mult name
1 parent d5d8f13 commit 467c706

File tree

10 files changed

+52
-552100
lines changed

10 files changed

+52
-552100
lines changed

examples/gploop/gploop.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ program gploop
5757
integer :: icount
5858
integer :: pp(100)
5959
real(dp) :: vv(100)
60-
real(dp) :: ehomo, elumo, egap, traceMult
60+
real(dp) :: ehomo, elumo, egap, trace_mult
6161
real(dp), allocatable :: gbnd(:)
6262

6363
logical :: first_part = .true.
@@ -414,15 +414,15 @@ program gploop
414414
endif
415415

416416
!! Calculate Trace[HP]
417-
traceMult = bml_trace_mult(orthoh_bml, orthop_bml)
417+
trace_mult = bml_trace_mult(orthoh_bml, orthop_bml)
418418
#ifdef DO_MPI_BLOCK
419419
if (getNRanks() > 1) then
420-
call prg_sumRealReduce(traceMult)
420+
call prg_sumRealReduce(trace_mult)
421421
endif
422422
#endif
423423
if (printRank() .eq. 1) then
424-
write(*,*) "Trace[HP] for SP2 = ", traceMult
425-
write(*,*) "Band energy per atom = ", traceMult/gsp2%natoms
424+
write(*,*) "Trace[HP] for SP2 = ", trace_mult
425+
write(*,*) "Band energy per atom = ", trace_mult/gsp2%natoms
426426
write(*,*)
427427
endif
428428

examples/gpmd/gpmd.F90

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ program gpmd
7373
real(dp) :: TRRHOH, Temp, Time, alpha
7474
real(dp) :: bndfil, cc, coulcut, dt
7575
real(dp) :: dx, egap, ehomo, elumo
76-
real(dp) :: kappa, scferror, traceMult, vv(100)
76+
real(dp) :: kappa, scferror, trace_mult, vv(100)
7777
real(dp) :: sumCubes, maxCH, Ef, smooth_maxCH, pnorm=6
7878
real(dp) :: dvdw, d, gc(3), lasterror
7979
real(dp), allocatable :: FPUL(:,:), FSCOUL(:,:), FTOT(:,:), PairForces(:,:), trace(:)
@@ -505,15 +505,15 @@ subroutine gpmd_SCFLoop(Nr_SCF,nguess)
505505

506506

507507
!! Calculate Trace[HP]
508-
traceMult = bml_trace_mult(orthoh_bml, orthop_bml)
508+
trace_mult = bml_trace_mult(orthoh_bml, orthop_bml)
509509
#ifdef DO_MPI_BLOCK
510510
if (getNRanks() > 1) then
511-
call prg_sumRealReduce(traceMult)
511+
call prg_sumRealReduce(trace_mult)
512512
endif
513513
#endif
514514
if (printRank() .eq. 1) then
515-
write(*,*) "Trace[HP] for SP2 = ", traceMult
516-
write(*,*) "Band energy per atom = ", traceMult/gsp2%natoms
515+
write(*,*) "Trace[HP] for SP2 = ", trace_mult
516+
write(*,*) "Band energy per atom = ", trace_mult/gsp2%natoms
517517
write(*,*)
518518
endif
519519

@@ -919,15 +919,15 @@ subroutine gpmd_MDloop()
919919
endif
920920

921921
!! Calculate Trace[HP]
922-
traceMult = bml_trace_mult(orthoh_bml, orthop_bml)
922+
trace_mult = bml_trace_mult(orthoh_bml, orthop_bml)
923923
#ifdef DO_MPI_BLOCK
924924
if (getNRanks() > 1) then
925-
call prg_sumRealReduce(traceMult)
925+
call prg_sumRealReduce(trace_mult)
926926
endif
927927
#endif
928928
if (printRank() .eq. 1) then
929-
write(*,*) "Trace[HP] for SP2 = ", traceMult
930-
write(*,*) "Band energy per atom = ", traceMult/gsp2%natoms
929+
write(*,*) "Trace[HP] for SP2 = ", trace_mult
930+
write(*,*) "Band energy per atom = ", trace_mult/gsp2%natoms
931931
write(*,*)
932932
endif
933933

examples/gpscf/gpscf.F90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ program gpscf
4949
integer :: icount
5050
integer :: pp(100)
5151
real(dp) :: vv(100)
52-
real(dp) :: ehomo, elumo, egap, traceMult
52+
real(dp) :: ehomo, elumo, egap, trace_mult
5353
real(dp), allocatable :: gbnd(:)
5454

5555
!> Start progress
@@ -313,15 +313,15 @@ program gpscf
313313
endif
314314

315315
!! Calculate Trace[HP]
316-
traceMult = bml_trace_mult(orthoh_bml, orthop_bml)
316+
trace_mult = bml_trace_mult(orthoh_bml, orthop_bml)
317317
#ifdef DO_MPI_BLOCK
318318
if (getNRanks() > 1) then
319-
call prg_sumRealReduce(traceMult)
319+
call prg_sumRealReduce(trace_mult)
320320
endif
321321
#endif
322322
if (printRank() .eq. 1) then
323-
write(*,*) "Trace[HP] for SP2 = ", traceMult
324-
write(*,*) "Band energy per atom = ", traceMult/gsp2%natoms
323+
write(*,*) "Trace[HP] for SP2 = ", trace_mult
324+
write(*,*) "Band energy per atom = ", trace_mult/gsp2%natoms
325325
write(*,*)
326326
endif
327327

examples/gptest/gptest.F90

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ program gptest
2424
integer :: N, M, i, icount
2525
integer :: pp(100)
2626
real(dp) :: vv(100)
27-
real(dp) :: mineval, maxeval, traceMult, traceMultg
27+
real(dp) :: mineval, maxeval, trace_mult, trace_multg
2828
real(dp) :: ehomo, elumo, egap, frobNorm
2929
real(dp), allocatable :: gbnd(:)
3030

@@ -65,15 +65,15 @@ program gptest
6565
endif
6666

6767
!< Calculate Trace[HP]
68-
traceMult = bml_trace_mult(h_bml, g_bml)
68+
trace_mult = bml_trace_mult(h_bml, g_bml)
6969
#ifdef DO_MPI_BLOCK
7070
if (getNRanks() > 1) then
71-
call prg_sumRealReduce(traceMult)
71+
call prg_sumRealReduce(trace_mult)
7272
endif
7373
#endif
7474
if (printRank() .eq. 1) then
75-
write(*,*) "Trace[HP] for SP2 = ", traceMult
76-
write(*,*) "Band energy per atom = ", traceMult/gsp2%natoms
75+
write(*,*) "Trace[HP] for SP2 = ", trace_mult
76+
write(*,*) "Band energy per atom = ", trace_mult/gsp2%natoms
7777
write(*,*)
7878
endif
7979

@@ -128,15 +128,15 @@ program gptest
128128
endif
129129

130130
!< Calculate trace[HP]
131-
traceMultg = bml_trace_mult(h_bml, rho_bml)
131+
trace_multg = bml_trace_mult(h_bml, rho_bml)
132132
#ifdef DO_MPI_BLOCK
133133
if (getNRanks() > 1) then
134-
call prg_sumRealReduce(traceMultg)
134+
call prg_sumRealReduce(trace_multg)
135135
endif
136136
#endif
137137
if (printRank() .eq. 1) then
138-
write(*,*) "Trace[HP] for subgraph SP2 = ", traceMultg
139-
write(*,*) "Band energy per atom = ", traceMultg/gsp2%natoms
138+
write(*,*) "Trace[HP] for subgraph SP2 = ", trace_multg
139+
write(*,*) "Band energy per atom = ", trace_multg/gsp2%natoms
140140
write(*,*)
141141
endif
142142

@@ -146,7 +146,7 @@ program gptest
146146
write(*,*) "Frobenius norm = ", frobNorm
147147
write(*,*) "Frobenius norm/atom = ", frobNorm/gsp2%natoms
148148
write(*,*) "Error in band energy = ", &
149-
traceMult/gsp2%natoms - traceMultg/gsp2%natoms
149+
trace_mult/gsp2%natoms - trace_multg/gsp2%natoms
150150
write(*,*)
151151
endif
152152

0 commit comments

Comments
 (0)