Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update KWN_model.f90 #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/KWN_model.f90
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ subroutine run_model(prm, dot, stt, dst, &
temp_c_matrix, &
temp_x_eq_interface, &
temp_x_eq_matrix, &
temp_precipitate_density ,&
temp_precipitate_density ,


&
temp_dot_precipitate_density, &
k1,k2,k3,k4 ! variables used for Runge Kutta integration

Expand All @@ -114,14 +117,14 @@ subroutine run_model(prm, dot, stt, dst, &
Temperature_temp, &
h !used for Runge Kutta integration

character*100 :: filename !name of the gile where the outputs will be written
character*100 :: filename !name of the file where the outputs will be written

INTEGER :: status ! I/O status



! allocate arrays for Runga Kutta and temporary work
allocate(k1(prm%kwn_nSteps), source=0.0_pReal) ! Runge Kutta
allocate(k1(prm%kwn_nSteps), source=0.0_pReal) ! Runge-Kutta
allocate(k2(prm%kwn_nSteps), source=0.0_pReal) !
allocate(k3(prm%kwn_nSteps), source=0.0_pReal)
allocate(k4(prm%kwn_nSteps), source=0.0_pReal)
Expand Down Expand Up @@ -445,4 +448,4 @@ subroutine run_model(prm, dot, stt, dst, &
end subroutine run_model


end module KWN_model
end module KWN_model