Write out a canonicalND shape in lua format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_canonicalND_type), | intent(in) | :: | me |
canonicalND types to write out |
||
type(aot_out_type), | intent(inout) | :: | conf |
Aotus type handling the output to the file in lua format |
subroutine tem_canonicalND_out_scal( me, conf ) ! -------------------------------------------------------------------------- !> canonicalND types to write out type( tem_canonicalND_type ), intent(in) :: me !> Aotus type handling the output to the file in lua format type(aot_out_type), intent(inout) :: conf ! -------------------------------------------------------------------------- integer :: iVec ! -------------------------------------------------------------------------- ! create a table with name canonicalND if not exist if( conf%level .eq. 0 ) then call aot_out_open_table( put_conf = conf, tname = 'object' ) else call aot_out_open_table( put_conf = conf ) end if !write origin call aot_out_val( put_conf = conf, vname = 'origin', val = me%origin ) !write vec if(me%nDim >0) then call aot_out_open_table( put_conf = conf, tname = 'vec' ) do iVec=1,me%nDim call aot_out_val( put_conf = conf, val = me%vec(:,iVec) ) enddo call aot_out_close_table( put_conf = conf ) !write segments call aot_out_open_table( put_conf = conf, tname = 'segments' ) do iVec=1,me%nDim call aot_out_val( put_conf = conf, val = me%segments(iVec) ) enddo call aot_out_close_table( put_conf = conf ) endif if (trim(me%kind) == 'box') then call aot_out_val( put_conf = conf, vname = 'only_surface', & & val = me%only_surface ) end if !write distribution call aot_out_val( put_conf = conf, & & vname = 'distribution', & & val = me%distribution ) call aot_out_close_table( put_conf = conf ) end subroutine tem_canonicalND_out_scal