Skip to content

Commit 2982d7a

Browse files
authored
Merge pull request #29 from uclazyj/master
removed the unused argument 'fields' in init_sim_beams and init_sim_s…
2 parents 515a186 + f2f8b2c commit 2982d7a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source/simulation_class.f03

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ subroutine init_simulation(this)
204204
call this%in%get('simulation.nspecies',this%nspecies)
205205

206206
call this%fields%new(this%in)
207-
call this%beams%new(this%in,this%fields)
208-
call this%species%new(this%in,this%fields,(this%start3d-1)*dt)
207+
call this%beams%new(this%in)
208+
call this%species%new(this%in,(this%start3d-1)*dt)
209209

210210
call this%init_diag()
211211

@@ -371,13 +371,12 @@ subroutine end_sim_fields(this)
371371

372372
end subroutine end_sim_fields
373373
!
374-
subroutine init_sim_beams(this,input,fields)
374+
subroutine init_sim_beams(this,input)
375375

376376
implicit none
377377

378378
class(sim_beams), intent(inout) :: this
379379
type(input_json), pointer, intent(inout) :: input
380-
class(sim_fields), intent(inout) :: fields
381380
! local data
382381
character(len=18), save :: class = 'sim_beams:'
383382
character(len=18), save :: sname = 'init_sim_beams:'
@@ -480,13 +479,12 @@ subroutine end_sim_beams(this)
480479

481480
end subroutine end_sim_beams
482481
!
483-
subroutine init_sim_species(this,input,fields,s)
482+
subroutine init_sim_species(this,input,s)
484483

485484
implicit none
486485

487486
class(sim_species), intent(inout) :: this
488487
type(input_json), pointer, intent(inout) :: input
489-
class(sim_fields), intent(inout) :: fields
490488
real, intent(in) :: s
491489
! local data
492490
character(len=18), save :: class = 'sim_species:'

0 commit comments

Comments
 (0)