Skip to content

Commit

Permalink
add more whitespace checking and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jimustafa committed May 27, 2022
1 parent d141f9f commit 76099dd
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 17 deletions.
8 changes: 6 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ repos:
- id: check-yaml
- id: trailing-whitespace
files: (?x)^(
Makefile|
config/make[.]inc[.\w]*|
examples/example\d\d[-]?\w*/.+win
examples/example\d\d[-]?\w*/.+win|
src/.+
)$
- id: end-of-file-fixer
files: (?x)^(
Makefile|
config/make[.]inc[.\w]*|
examples/example\d\d[-]?\w*/.+win
examples/example\d\d[-]?\w*/.+win|
src/.+
)$
- repo: https://github.com/pseewald/fprettify
rev: v0.3.3
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ dist-legacy:
test-serial: w90chk2chk wannier post
(cd $(ROOTDIR)/test-suite && ./run_tests --category=default )

test-parallel: w90chk2chk wannier post
test-parallel: w90chk2chk wannier post
(cd $(ROOTDIR)/test-suite && ./run_tests --category=par --numprocs=4 )

# Alias
Expand Down
15 changes: 7 additions & 8 deletions src/Makefile.2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- MakeFile -*-
# -*- MakeFile -*-
# Should be no need to change below this line
#

Expand Down Expand Up @@ -36,7 +36,7 @@ endif

wannier libs dynlibs w90chk2chk w90spn2spn: POSTOPTS = $(TEMP1)
wannier libs dynlibs w90chk2chk w90spn2spn: COMPILER = $(TEMP2)
wannier: ../../wannier90.x
wannier: ../../wannier90.x
w90chk2chk: ../../w90chk2chk.x
w90spn2spn: ../../w90spn2spn.x

Expand All @@ -51,7 +51,7 @@ w90spn2spn: ../../w90spn2spn.x

$(LIBRARYV2): $(OBJS)
$(AR) $(ARFLAGS) $(LIBRARYV2) $(OBJS)

post: POSTOPTS = $(TEMP1)
post: COMPILER = $(TEMP2)
post: mpi_test ../../postw90.x
Expand All @@ -71,11 +71,11 @@ ifndef MPIF90
$(info * On many systems MPIF90=mpif90 will work *) \
$(info ********************* STOP **********************) \
$(info ) \
$(error MPIF90 is not set)
$(error MPIF90 is not set)

endif

endif
endif



Expand Down Expand Up @@ -120,7 +120,7 @@ hamiltonian.o: ../hamiltonian.F90 ws_distance.o constants.o io.o utility.o types
overlap.o: ../overlap.F90 constants.o io.o utility.o types.o sitesym.o wannier90_types.o comms.o error.o
$(COMPILER) $(POSTOPTS) $(FCOPTS) -c ../overlap.F90

kmesh.o: ../kmesh.F90 constants.o io.o utility.o types.o
kmesh.o: ../kmesh.F90 constants.o io.o utility.o types.o
$(COMPILER) $(POSTOPTS) $(FCOPTS) -c ../kmesh.F90

error_base.o: ../error_base.F90
Expand Down Expand Up @@ -183,7 +183,7 @@ wan_ham.o: $(POSTDIR)wan_ham.F90 types.o postw90_types.o constants.o utility.o p
postw90_common.o: $(POSTDIR)postw90_common.F90 postw90_types.o ws_distance.o comms.o types.o utility.o constants.o io.o
$(COMPILER) $(POSTOPTS) $(FCOPTS) -c $(POSTDIR)postw90_common.F90

postw90_types.o: $(POSTDIR)postw90_types.F90 comms.o types.o utility.o constants.o io.o
postw90_types.o: $(POSTDIR)postw90_types.F90 comms.o types.o utility.o constants.o io.o
$(COMPILER) $(POSTOPTS) $(FCOPTS) -c $(POSTDIR)postw90_types.F90

postw90_readwrite.o: $(POSTDIR)postw90_readwrite.F90 comms.o postw90_types.o types.o utility.o constants.o io.o error.o
Expand All @@ -197,4 +197,3 @@ wannier_lib.o: ./constants.o ./io.o ./utility.o ./types.o \


.PHONY: wannier libs post clean mpi_test w90spn2spn

1 change: 0 additions & 1 deletion src/comms.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1921,5 +1921,4 @@ subroutine comms_scatterv_int_3(array, localcount, rootglobalarray, counts, disp
call comms_no_sync_scatterv_int_3(array, localcount, rootglobalarray, counts, displs, &
error, comm)
end subroutine comms_scatterv_int_3

end module w90_comms
1 change: 0 additions & 1 deletion src/error.F90
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,3 @@ subroutine set_error_warn(err, mesg, comm)
end subroutine set_error_warn

end module w90_error

1 change: 0 additions & 1 deletion src/transport.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4557,4 +4557,3 @@ subroutine tran_lcr_2c2_build_ham(pl_warning, real_space_ham, fermi_energy_list,
end subroutine tran_lcr_2c2_build_ham

end module w90_transport

1 change: 0 additions & 1 deletion src/w90chk2chk.F90
Original file line number Diff line number Diff line change
Expand Up @@ -756,4 +756,3 @@ program w90chk2chk
close (unit=stdout)

end program w90chk2chk

1 change: 0 additions & 1 deletion src/w90spn2spn.F90
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,3 @@ program w90spn2spn
close (unit=stdout)

end program w90spn2spn

1 change: 0 additions & 1 deletion src/wannier_prog.F90
Original file line number Diff line number Diff line change
Expand Up @@ -646,4 +646,3 @@ subroutine prterr(error, stdout, stderr, comm)
end subroutine prterr

end program wannier

0 comments on commit 76099dd

Please sign in to comment.