Skip to content

Commit

Permalink
Merge pull request sissaschool#69 from kousuke-nakano/devel-#10
Browse files Browse the repository at this point in the history
version info. is printed in the stand-alone .f90 programs
  • Loading branch information
kousuke-nakano authored Jul 13, 2023
2 parents 892da00 + 11ae732 commit 62d0d84
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/a_convertfort10/convertfort10.f90
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ program convertfort10
nprocn = 1
commopt_mpi = 0
#endif
! output version information
if (rankn .eq. 0) call print_version

proc8 = nprocn
!#ifdef __CASO
!#else
Expand Down
3 changes: 3 additions & 0 deletions src/a_convertfort10mol/convertfort10mol.f90
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ program convertfort10mol
end if
! AAA end lines to be added
#endif
! output version information
if (rankn .eq. 0) call print_version

nprocu = nprocn
nproc_diag = nprocu
call mpi_sub_comm_create(comm_mpi, nproc_diag, sub_comm_diag, ierr)
Expand Down
3 changes: 3 additions & 0 deletions src/a_convertfortpfaff/convertpfaff.f90
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ program convertpfaff
real*8 scale_unp, angle_rot, phi_rot
real*8, dimension(:, :), allocatable :: surot, suscra, sutry

! output version information
call print_version

!reading and saving the quantities of the fort.10_in

open (unit=10, file='fort.10_in', form='formatted', status='unknown')
Expand Down
3 changes: 3 additions & 0 deletions src/a_makefort10/makefort10.f90
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ program makefort10
stop
end if

! output version information
call print_version

write (*, *)
write (*, *) ' * * * Creates fort.10 for solids and open systems * * * '
write (*, *)
Expand Down
4 changes: 4 additions & 0 deletions src/a_prep/prep.f90
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ program main
old_threads = 1
#endif

! output version information
if (rank .eq. 0) call print_version

! print threads and mpi info.
if (rank .eq. 0) write (6, *) ' Number of threads /mpi proc =', old_threads

#if defined UNREL_SMP
Expand Down
3 changes: 3 additions & 0 deletions src/a_readforward/readforward.f90
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ program readforward
sizep = 1
#endif

! output version information
if (rank .eq. 0) call print_version

zero = 0.d0
max_shells = 20000 ! max number of k-shells allowed

Expand Down
2 changes: 1 addition & 1 deletion src/m_common/_version.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
subroutine print_version
implicit none
character(LEN=6) :: version_number = '0.0.1'
character(LEN=6) :: version_number = '1.0.0'
character(LEN=40) :: git_revision = 'unknown'

write (6, *) "----------------------------------------------------------------------------"
Expand Down

0 comments on commit 62d0d84

Please sign in to comment.