-
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.
- Loading branch information
1 parent
cdfb48f
commit 93381b6
Showing
5 changed files
with
115 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module ftools__io | ||
implicit none | ||
|
||
interface str | ||
module procedure :: str_gen | ||
end interface str | ||
|
||
contains | ||
function str_gen(int_in) result(str_out) | ||
class(*), intent(in) :: int_in | ||
character(len=99) :: str_mid | ||
character(len=:), allocatable :: str_out | ||
|
||
select type(int_in) | ||
type is (real) | ||
write (str_mid, *) int_in | ||
type is (integer) | ||
write (str_mid, *) int_in | ||
end select | ||
str_out = trim(adjustl(str_mid)) | ||
end function str_gen | ||
end module ftools__io |
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