Skip to content

Commit

Permalink
fortitude implicit none and style
Browse files Browse the repository at this point in the history
  • Loading branch information
pmocz committed Feb 11, 2025
1 parent 06d820f commit d5f1650
Show file tree
Hide file tree
Showing 166 changed files with 1,243 additions and 1,197 deletions.
11 changes: 6 additions & 5 deletions astero/test_suite/astero_adipls/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
implicit none
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
11 changes: 6 additions & 5 deletions astero/test_suite/astero_gyre/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
implicit none
call run_star_astero(extras_controls)
end program run
11 changes: 6 additions & 5 deletions astero/test_suite/example_astero/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
implicit none
call run_star_astero(extras_controls)
end program run
11 changes: 6 additions & 5 deletions astero/test_suite/fast_from_file/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
implicit none
call run_star_astero(extras_controls)
end program run
11 changes: 6 additions & 5 deletions astero/test_suite/fast_newuoa/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
implicit none
call run_star_astero(extras_controls)
end program run
11 changes: 6 additions & 5 deletions astero/test_suite/fast_scan_grid/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
implicit none
call run_star_astero(extras_controls)
end program run
11 changes: 6 additions & 5 deletions astero/test_suite/fast_simplex/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
implicit none
call run_star_astero(extras_controls)
end program run
11 changes: 6 additions & 5 deletions astero/test_suite/surface_effects/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
implicit none
call run_star_astero(extras_controls)
end program run
11 changes: 6 additions & 5 deletions astero/work/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
call run_star_astero(extras_controls)
end program run
program run
use astero_lib, only: run_star_astero
use run_star_extras, only: extras_controls
implicit none
call run_star_astero(extras_controls)
end program run
2 changes: 2 additions & 0 deletions auto_diff/private/support_functions.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ module support_functions
use const_def
use math_lib

implicit none

interface pow
module procedure int_real_pow
module procedure int_int_pow
Expand Down
1 change: 1 addition & 0 deletions auto_diff/public/auto_diff.f90
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ module auto_diff
use auto_diff_real_2var_order1_module
use auto_diff_real_star_order1_module
use auto_diff_real_2var_order3_module
implicit none
end module auto_diff
2 changes: 2 additions & 0 deletions auto_diff/test/src/test_auto_diff.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ program test_auto_diff
use auto_diff
use const_def

implicit none

call do_test_auto_diff_1var_order1()
call do_test_auto_diff_2var_order1()
call do_test_auto_diff_star_order1()
Expand Down
2 changes: 2 additions & 0 deletions binary/public/binary_pgbinary.f90
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ module binary_pgbinary
use const_def
use star_pgstar

implicit none

abstract interface

subroutine pgbinary_plot_interface(id, device_id, ierr)
Expand Down
10 changes: 6 additions & 4 deletions binary/test_suite/double_bh/src/binary_run.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
10 changes: 6 additions & 4 deletions binary/test_suite/evolve_both_stars/src/binary_run.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
10 changes: 6 additions & 4 deletions binary/test_suite/jdot_gr_check/src/binary_run.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
10 changes: 6 additions & 4 deletions binary/test_suite/jdot_ls_check/src/binary_run.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
10 changes: 6 additions & 4 deletions binary/test_suite/jdot_ml_check/src/binary_run.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
10 changes: 6 additions & 4 deletions binary/test_suite/star_plus_point_mass/src/binary_run.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
10 changes: 6 additions & 4 deletions binary/test_suite/wind_fed_bhhmxb/src/binary_run.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
10 changes: 6 additions & 4 deletions binary/work/src/binary_run.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
program binary_run
use run_binary, only: do_run_binary
program binary_run
use run_binary, only: do_run_binary

call do_run_binary(.true.)
implicit none

end program binary_run
call do_run_binary(.true.)

end program binary_run
2 changes: 2 additions & 0 deletions chem/preprocessor/src/chem_support.f90
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ module chem_support
use math_lib
use utils_lib, only: mesa_error

implicit none

real(dp), parameter :: no_mass_table_entry = -999.d0
character(len=256) :: data_dir, output_dir, masstable_filename, winvn_filename
integer :: masstable_header_length
Expand Down
3 changes: 3 additions & 0 deletions chem/preprocessor/src/create_table.f90
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
program create_table
use chem_support
use iso_fortran_env, only : error_unit

implicit none

character(len=64) :: inlist_fname
integer :: ios

Expand Down
3 changes: 3 additions & 0 deletions chem/private/lodders_mod.f90
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
! ***********************************************************************
module lodders_mod
use const_def, only : dp, mesa_data_dir
implicit none

contains

subroutine read_lodders03_data(datafile,ierr)
use iso_fortran_env, only : iostat_end
use chem_def
Expand Down
10 changes: 5 additions & 5 deletions data/star_data/zams_models/create_z2m2_y28/src/run.f90
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
program run
use run_star_extras, only: do_run
program run
use run_star_extras, only: do_run

implicit none
implicit none

call do_run ! create zams
call do_run ! create zams

end program run
end program run
8 changes: 8 additions & 0 deletions eos/private/gauss_fermi.f90
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ subroutine dqleg010(f,a,b,res,dres,ddres,par,n)
interface
subroutine f(absc1, par, n, fval1, dfval1, ddfval1)
use const_def, only: dp
implicit none
integer :: n
real(dp) :: absc1, par(n), fval1, dfval1, ddfval1
end subroutine f
Expand Down Expand Up @@ -307,6 +308,7 @@ subroutine dqleg020(f,a,b,res,dres,ddres,par,n)
interface
subroutine f(absc1, par, n, fval1, dfval1, ddfval1)
use const_def, only: dp
implicit none
integer :: n
real(dp) :: absc1, par(n), fval1, dfval1, ddfval1
end subroutine f
Expand Down Expand Up @@ -395,6 +397,7 @@ subroutine dqleg040(f,a,b,res,dres,ddres,par,n)
interface
subroutine f(absc1, par, n, fval1, dfval1, ddfval1)
use const_def, only: dp
implicit none
integer :: n
real(dp) :: absc1, par(n), fval1, dfval1, ddfval1
end subroutine f
Expand Down Expand Up @@ -502,6 +505,7 @@ subroutine dqleg080(f,a,b,res,dres,ddres,par,n)
interface
subroutine f(absc1, par, n, fval1, dfval1, ddfval1)
use const_def, only: dp
implicit none
integer :: n
real(dp) :: absc1, par(n), fval1, dfval1, ddfval1
end subroutine f
Expand Down Expand Up @@ -648,6 +652,7 @@ subroutine dqlag010(f,a,b,res,dres,ddres,par,n)
interface
subroutine f(absc, par, n, fval, dfval, ddfval)
use const_def, only: dp
implicit none
integer :: n
real(dp) :: absc, par(n), fval, dfval, ddfval
end subroutine f
Expand Down Expand Up @@ -727,6 +732,7 @@ subroutine dqlag020(f,a,b,res,dres,ddres,par,n)
interface
subroutine f(absc, par, n, fval, dfval, ddfval)
use const_def, only: dp
implicit none
integer :: n
real(dp) :: absc, par(n), fval, dfval, ddfval
end subroutine f
Expand Down Expand Up @@ -826,6 +832,7 @@ subroutine dqlag040(f,a,b,res,dres,ddres,par,n)
interface
subroutine f(absc, par, n, fval, dfval, ddfval)
use const_def, only: dp
implicit none
integer :: n
real(dp) :: absc, par(n), fval, dfval, ddfval
end subroutine f
Expand Down Expand Up @@ -966,6 +973,7 @@ subroutine dqlag080(f,a,b,res,dres,ddres,par,n)
interface
subroutine f(absc, par, n, fval, dfval, ddfval)
use const_def, only: dp
implicit none
integer :: n
real(dp) :: absc, par(n), fval, dfval, ddfval
end subroutine f
Expand Down
2 changes: 1 addition & 1 deletion fortitude.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[check]
ignore = ["E001","OB001","OB011","P001","P011","P021","T001","T002","T011","T031","T041","T042","S001","S041","S101","S102","M011","M001"]
ignore = ["E001","OB001","OB011","P001","P011","P021","T001","T002","T011","T031","T041","T042","S001","S041","S101","S102","M001","M011"]
line-length = 200
2 changes: 1 addition & 1 deletion gyre/public/gyre_mesa_m_stub.f90
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ subroutine get_modes (l, user_sub, ipar, rpar)
subroutine user_sub (md, ipar, rpar, retcode)
import mode_t
import RD
implicit none
type(mode_t), intent(in) :: md
integer, intent(inout) :: ipar(:)
real(RD), intent(inout) :: rpar(:)
Expand Down Expand Up @@ -181,4 +182,3 @@ subroutine set_constant_c_ (name, value)
end subroutine set_constant_c_

end module gyre_mesa_m ! stub

2 changes: 2 additions & 0 deletions mtx/private/mtx_support.f90
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ module mtx_support
use const_def, only: dp, qp
use utils_lib, only: mesa_error

implicit none

integer, parameter :: num_chunks = 4

contains
Expand Down
Loading

0 comments on commit d5f1650

Please sign in to comment.