-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
8 changed files
with
313 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
title = "sis input" | ||
|
||
[job] | ||
type = "DCD" | ||
|
||
[files] | ||
[files.in] | ||
ff = "./rna_cg1.ff" | ||
dcd = "md.dcd" | ||
|
||
[files.out] | ||
types = ["bp", "bpe"] | ||
prefix = "./test" | ||
|
||
|
||
[repeat] | ||
n_repeat = 47 | ||
n_chain = 64 |
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 |
---|---|---|
@@ -1,36 +1,81 @@ | ||
module const_idx | ||
|
||
use,intrinsic :: ISO_FORTRAN_ENV, only: REAL64, INT64 | ||
use :: const | ||
|
||
implicit none | ||
|
||
type energy_types | ||
integer :: TOTAL ! 0 | ||
integer :: BOND ! 1 | ||
integer :: ANGL ! 2 | ||
integer :: BP ! 3 | ||
integer :: ELE ! 4 | ||
integer :: MAX | ||
endtype energy_types | ||
type(energy_types), parameter :: ENE = energy_types(0,1,2,3,4,4) | ||
|
||
type seq_types | ||
integer :: A ! 1 | ||
integer :: U ! 2 | ||
integer :: G ! 3 | ||
integer :: C ! 4 | ||
integer :: MAX | ||
endtype seq_types | ||
type(seq_types), parameter :: SEQT = seq_types(1,2,3,4,4) | ||
|
||
type job_types | ||
integer :: DEBUG ! 0 | ||
integer :: CHECK_FORCE ! 1 | ||
integer :: MD ! 2 | ||
integer :: DCD ! 3 | ||
integer :: MAX | ||
endtype job_types | ||
type(job_types), parameter :: JOBT = job_types(0,1,2,3,3) | ||
use,intrinsic :: ISO_FORTRAN_ENV, only: REAL64, INT64 | ||
use :: const | ||
|
||
implicit none | ||
|
||
type energy_types | ||
integer :: TOTAL ! 0 | ||
integer :: BOND ! 1 | ||
integer :: ANGL ! 2 | ||
integer :: BP ! 3 | ||
integer :: ELE ! 4 | ||
integer :: MAX | ||
endtype energy_types | ||
type(energy_types), parameter :: ENE = energy_types(0,1,2,3,4,4) | ||
|
||
type seq_types | ||
integer :: UNDEF ! 0 | ||
integer :: A ! 1 | ||
integer :: U ! 2 | ||
integer :: G ! 3 | ||
integer :: C ! 4 | ||
integer :: MAX | ||
endtype seq_types | ||
type(seq_types), parameter :: SEQT = seq_types(0,1,2,3,4,4) | ||
|
||
type job_types | ||
integer :: DEBUG ! 0 | ||
integer :: CHECK_FORCE ! 1 | ||
integer :: MD ! 2 | ||
integer :: DCD ! 3 | ||
integer :: MAX | ||
endtype job_types | ||
type(job_types), parameter :: JOBT = job_types(0,1,2,3,3) | ||
|
||
contains | ||
function seqt2char(i) result(c) | ||
integer, intent(in) :: i | ||
character(1) :: c | ||
|
||
select case (i) | ||
case (SEQT%A) | ||
c = 'A' | ||
case (SEQT%U) | ||
c = 'U' | ||
case (SEQT%G) | ||
c = 'G' | ||
case (SEQT%C) | ||
c = 'C' | ||
case (SEQT%UNDEF) | ||
c = '?' | ||
case default | ||
c = '?' | ||
endselect | ||
|
||
endfunction seqt2char | ||
|
||
function char2seqt(c) result (i) | ||
character(1), intent(in) :: c | ||
integer :: i | ||
|
||
if (c == 'A' .or. c == 'a') then | ||
i = SEQT%A | ||
|
||
else if (c == 'U' .or. c == 'u') then | ||
i = SEQT%U | ||
|
||
else if (c == 'G' .or. c == 'g') then | ||
i = SEQT%G | ||
|
||
else if (c == 'C' .or. c == 'c') then | ||
i = SEQT%C | ||
|
||
else | ||
i = SEQT%UNDEF | ||
endif | ||
|
||
endfunction char2seqt | ||
|
||
end module const_idx |
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
Oops, something went wrong.