21 USE stel_kinds,
only : rprec, dp
42 INTEGER,
DIMENSION(2) :: indices = 0
88 CHARACTER (len=*),
INTENT(in) :: param_name
89 INTEGER,
DIMENSION(2),
INTENT(in) :: indices
92 REAL (rprec) :: start_time
95 start_time = profiler_get_start_time()
103 CALL profiler_set_stop_time(
'prior_gaussian_construct',
123 TYPE (prior_gaussian_class),
INTENT(inout) :: this
154 REAL (rprec),
DIMENSION(4),
INTENT(out) :: sigma
155 REAL (rprec),
DIMENSION(4),
INTENT(in) :: last_value
158 REAL (rprec) :: start_time
161 start_time = profiler_get_start_time()
166 & this%indices(1), this%indices(2))
169 CALL this%scale_and_offset(a_model,
172 CALL profiler_set_stop_time(
'prior_gaussian_get_modeled_signal',
192 REAL (rprec) :: start_time
195 start_time = profiler_get_start_time()
199 CALL profiler_set_stop_time(
'prior_gaussian_get_type',
226 INTEGER,
INTENT(in) :: i
227 INTEGER,
INTENT(in) :: flags
230 REAL (rprec) :: start_time
233 start_time = profiler_get_start_time()
235 IF (btest(flags, model_state_ne_flag))
THEN
238 ELSE IF (btest(flags, model_state_te_flag))
THEN
241 ELSE IF (btest(flags, model_state_ti_flag))
THEN
244 ELSE IF (btest(flags, model_state_sxrem_flag +
245 & (this%indices(1) - 1)))
THEN
255 CALL profiler_set_stop_time(
'prior_gaussian_get_gp_i', start_time)
281 INTEGER,
INTENT(in) :: flags
284 REAL (rprec) :: start_time
287 start_time = profiler_get_start_time()
289 IF (btest(flags, model_state_ne_flag) .or.
290 & btest(flags, model_state_te_flag) .or.
291 & btest(flags, model_state_ti_flag))
THEN
293 &
signal%get_gp(a_model, this%indices(1), flags)
294 ELSE IF (btest(flags, model_state_sxrem_flag +
295 & (this%indices(1) - 1)))
THEN
297 &
signal%get_gp(a_model, this%indices(2), flags)
304 CALL profiler_set_stop_time(
'prior_gaussian_get_gp_s', start_time)
332 REAL (rprec),
DIMENSION(3),
INTENT(in) :: x_cart
333 INTEGER,
INTENT(in) :: flags
336 REAL (rprec) :: start_time
339 start_time = profiler_get_start_time()
341 IF (btest(flags, model_state_ne_flag))
THEN
344 ELSE IF (btest(flags, model_state_te_flag))
THEN
347 ELSE IF (btest(flags, model_state_ti_flag))
THEN
350 ELSE IF (btest(flags, model_state_sxrem_flag +
351 & (this%indices(1) - 1)))
THEN
361 CALL profiler_set_stop_time(
'prior_gaussian_get_gp_x', start_time)
385 INTEGER,
INTENT(in) :: iou
386 INTEGER,
INTENT(in) :: index
387 TYPE (model_class),
INTENT(in) :: a_model
390 REAL (rprec) :: start_time
393 start_time = profiler_get_start_time()
396 WRITE (iou,1000) index, this%get_type()
401 CALL profiler_set_stop_time(
'prior_gaussian_write_auxiliary',
404 1000
FORMAT(
'Signal',1x,i4,1x,
'is a prior signal, type: ',a)
405 1001
FORMAT(
'parameter name',8x,
'inx1',2x,
'inx2')
406 1002
FORMAT(a20,2(2x,i4))