Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco De Lucia
RedModRphree
Commits
fe1c3ad8
Commit
fe1c3ad8
authored
May 08, 2019
by
Marco De Lucia
Browse files
Fixed colnames(state_C) <- colnames(tmpfirstrun) in ReactTrans
parent
6914c303
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/Rphree_ReactTrans.R
View file @
fe1c3ad8
## Functions for dealing with surrogate simulations
## Functions for dealing with surrogate simulations
### Marco De Lucia, delucia@gfz-potsdam.de, 2009-2018
### Marco De Lucia, delucia@gfz-potsdam.de, 2009-2018
### Time-stamp: "Last modified 201
8
-0
8-14 20:59:02
delucia"
### Time-stamp: "Last modified 201
9
-0
5-08 17:18:23
delucia"
##' Todo
##' Todo
...
@@ -321,12 +321,12 @@ ReactTranspBalanceEq <- function(setup, init, maxtime, step=c("time","iter","fix
...
@@ -321,12 +321,12 @@ ReactTranspBalanceEq <- function(setup, init, maxtime, step=c("time","iter","fix
msg
(
"assuming homogeneous medium"
)
msg
(
"assuming homogeneous medium"
)
msg
(
"Names gathered after first run:"
,
paste
(
colnames
(
tmpfirstrun
),
collapse
=
", "
))
msg
(
"Names gathered after first run:"
,
paste
(
colnames
(
tmpfirstrun
),
collapse
=
", "
))
state_C
<-
matrix
(
rep
(
tmpfirstrun
,
n
),
byrow
=
TRUE
,
ncol
=
length
(
prop
))
state_C
<-
matrix
(
rep
(
tmpfirstrun
,
n
),
byrow
=
TRUE
,
ncol
=
length
(
prop
))
colnames
(
state_C
)
<-
colnames
(
tmpfirstrun
)
}
else
{
}
else
{
msg
(
"given initial state"
)
msg
(
"given initial state
; assuming correct colnames
"
)
state_C
<-
init
state_C
<-
init
}
}
colnames
(
state_C
)
<-
colnames
(
tmpfirstrun
)
attr
(
state_C
,
"immobile"
)
<-
immobile
attr
(
state_C
,
"immobile"
)
<-
immobile
## ssC <<- state_C
## ssC <<- state_C
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment