Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Made some changes to file i/o. Code runs again.
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 21, 2022
1 parent d8be095 commit 8516873
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/collision/collision_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ module subroutine collision_netcdf_io_initialize_output(self, param)
self%out_type = NF90_FLOAT
case("NETCDF_DOUBLE")
self%out_type = NF90_DOUBLE
case default
write(*,*) trim(adjustl(param%out_type)), " is an invalid OUT_TYPE"
end select

! Check if the file exists, and if it does, delete it
Expand Down
2 changes: 2 additions & 0 deletions src/encounter/encounter_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ module subroutine encounter_netcdf_io_initialize_output(self, param)
self%out_type = NF90_FLOAT
case("NETCDF_DOUBLE")
self%out_type = NF90_DOUBLE
case default
write(*,*) trim(adjustl(param%out_type)), " is an invalid OUT_TYPE"
end select

! Check if the file exists, and if it does, delete it
Expand Down
6 changes: 4 additions & 2 deletions src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,12 @@ module subroutine swiftest_io_netcdf_initialize_output(self, param)
sfill = ieee_value(sfill, IEEE_QUIET_NAN)

select case (param%out_type)
case("netcdf_io_FLOAT")
case("NETCDF_FLOAT")
nc%out_type = NF90_FLOAT
case("netcdf_io_DOUBLE")
case("NETCDF_DOUBLE")
nc%out_type = NF90_DOUBLE
case default
write(*,*) trim(adjustl(param%out_type)), " is an invalid OUT_TYPE"
end select

! Check if the file exists, and if it does, delete it
Expand Down
2 changes: 2 additions & 0 deletions src/swiftest/swiftest_setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ module subroutine swiftest_setup_construct_system(system, param)
write(*,*) 'Unkown integrator',param%integrator
call util_exit(FAILURE)
end select

allocate(swiftest_particle_info :: system%cb%info)
end select

return
Expand Down

0 comments on commit 8516873

Please sign in to comment.