Definition at line 205 of file dc_trace.f90.
◆ datad1dump()
subroutine dc_trace::datadump::datad1dump |
( |
character(*), intent(in) |
header, |
|
|
real(dp), dimension(:), intent(in) |
d, |
|
|
integer, intent(in), optional |
strlen, |
|
|
integer, dimension(:), intent(in), optional |
multi |
|
) |
| |
|
private |
Definition at line 552 of file dc_trace.f90.
573 character(*),
intent(in) :: header
574 real(DP),
intent(in) :: d(:)
575 integer,
intent(in),
optional:: strlen
576 integer,
intent(in),
optional:: multi(:)
578 character(STRING):: unit
579 character(STRING):: unitbuf
581 character(STRING):: cbuf
586 character(STRING):: cmulti
587 character(STRING):: cout
588 character(STRING):: meshead_tmp
589 integer :: meshead_len
591 if ( dbg < 0 )
return 604 meshead_tmp = meshead
605 meshead_len = len(meshead)
608 if (
present(multi))
then 609 do j = 1,
size(multi)
610 cmulti = trim(cmulti) //
', ' // trim(
tochar( multi(j) ) )
615 if (first) begini = i
617 write(cbuf,
"(g40.20)") d(i)
618 if (.not. first) cbuf =
', ' // adjustl(cbuf)
620 call append(unit, ucur, trim(adjustl(cbuf)), stat, strlen)
621 if ( stat /= 0 .or. i ==
size( d(:) ) )
then 624 cout = header //
'(' &
625 & // trim(
tochar(begini)) &
627 & //
')=' // trim(unit)
629 elseif (stat /= 0 .and. begini == endi-1)
then 630 cout = header //
'(' &
631 & // trim(
tochar(begini)) &
633 & //
')='// trim(unitbuf)
636 elseif (stat /= 0 .and. begini /= endi-1)
then 637 cout = header //
'(' &
638 & // trim(
tochar(begini)) //
'-' &
639 & // trim(
tochar(endi-1)) &
641 & //
')=' // trim(unitbuf)
645 elseif ( i ==
size( d(:) ) )
then 646 cout = header //
'(' &
647 & // trim(
tochar(begini)) //
'-' &
650 & //
')='// trim(unit)
652 write(dbg,
"(A, A, A, A)") &
653 & trim(head), repeat( indent,
max(level-1, 0) ), &
654 & meshead_tmp(1:meshead_len), trim(cout)
663 if (i ==
size( d(:) ) )
exit dim_1_loop
integer, parameter, public dp
倍精度実数型変数
subroutine append(unitx, ucur, val, stat)
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
◆ datad2dump()
subroutine dc_trace::datadump::datad2dump |
( |
character(*), intent(in) |
header, |
|
|
real(dp), dimension(:,:), intent(in) |
d, |
|
|
integer, intent(in), optional |
strlen, |
|
|
integer, dimension(:), intent(in), optional |
multi |
|
) |
| |
|
private |
Definition at line 668 of file dc_trace.f90.
674 character(*),
intent(in) :: header
675 real(DP),
intent(in) :: d(:,:)
676 integer,
intent(in),
optional:: strlen
677 integer,
intent(in),
optional:: multi(:)
678 integer,
allocatable :: total(:)
681 if ( dbg < 0 )
return 682 if (
present(multi))
then 683 allocate( total(
size(multi)+1) )
684 total(2:
size(multi)+1) = multi(:)
688 do j = 1,
size( d(:,:), 2 )
690 call datadump(header, d(:,j), strlen=strlen, multi=total(:))
integer, parameter, public dp
倍精度実数型変数
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
◆ datad3dump()
subroutine dc_trace::datadump::datad3dump |
( |
character(*), intent(in) |
header, |
|
|
real(dp), dimension(:,:,:), intent(in) |
d, |
|
|
integer, intent(in), optional |
strlen, |
|
|
integer, dimension(:), intent(in), optional |
multi |
|
) |
| |
|
private |
Definition at line 695 of file dc_trace.f90.
701 character(*),
intent(in) :: header
702 real(DP),
intent(in) :: d(:,:,:)
703 integer,
intent(in),
optional:: strlen
704 integer,
intent(in),
optional:: multi(:)
705 integer,
allocatable :: total(:)
708 if ( dbg < 0 )
return 709 if (
present(multi))
then 710 allocate( total(
size(multi)+1) )
711 total(2:
size(multi)+1) = multi(:)
715 do k = 1,
size( d(:,:,:), 3 )
717 call datadump(header, d(:,:,k), strlen=strlen, multi=total(:))
integer, parameter, public dp
倍精度実数型変数
integer, parameter, public string
文字列を保持する 文字型変数の種別型パラメタ
The documentation for this interface was generated from the following file: