-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fortran reads list of 'real' craters but doesn't do anything with it yet
- Loading branch information
Austin Blevins
committed
Mar 31, 2021
1 parent
3f729e9
commit 54d4a22
Showing
10 changed files
with
118 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| !********************************************************************************************************************************** | ||
| ! | ||
| ! Unit Name : io_read_craterlist | ||
| ! Unit Type : subroutine | ||
| ! Project : CTEM | ||
| ! Language : Fortran 2003 | ||
| ! | ||
| ! Description : Reads in list of 'real' craters for quasi-MC runs | ||
| ! | ||
| ! Input | ||
| ! Arguments : | ||
| ! | ||
| ! Output | ||
| ! Arguments : rclist : List of 'real' craters to read in | ||
| ! | ||
| ! Notes : | ||
| ! | ||
| !********************************************************************************************************************************** | ||
| subroutine io_read_craterlist(user, domain) | ||
| use module_globals | ||
| use module_io, EXCEPT_THIS_ONE => io_read_craterlist | ||
| implicit none | ||
|
|
||
| ! Arguments | ||
| type(usertype),intent(inout) :: user | ||
| type(domaintype),intent(in) :: domain | ||
|
|
||
| ! Internals | ||
| integer(I4B) :: i,ierr | ||
| integer(I4B),parameter :: LUN=7 | ||
|
|
||
| ! Executable code | ||
|
|
||
| ! Read the next crater from the craterlist | ||
|
|
||
| open(unit=LUN,file=rcfile,status='old',iostat=ierr) | ||
| if (ierr /= 0) then | ||
| write(*,*) "Unable to open file ",trim(rcfile) | ||
| stop | ||
| end if | ||
|
|
||
|
|
||
| do i=1,domain%rcnum | ||
| read(LUN,*,iostat=ierr) user%testimp, user%testvel, user%testang, user%testxoffset, user%testyoffset, user%rctime | ||
| if (ierr/=0) then | ||
| write(*,*) "Unable to read file ",trim(rcfile) | ||
| stop | ||
| end if | ||
| end do | ||
| end subroutine io_read_craterlist | ||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters