Write a shape to lua file
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_shape_type), | intent(in) | :: | me |
shape types to write out |
||
type(aot_out_type), | intent(inout) | :: | conf |
Aotus type handling the output to the file in lua format |
subroutine tem_shape_out_scal( me, conf ) !--------------------------------------------------------------------------- !> shape types to write out type( tem_shape_type ), intent(in) :: me !> Aotus type handling the output to the file in lua format type(aot_out_type), intent(inout) :: conf !--------------------------------------------------------------------------- ! create a table with name shape if not exist if( conf%level .eq. 0 ) then call aot_out_open_table( put_conf = conf, tname = 'shape' ) else call aot_out_open_table( put_conf = conf ) end if call aot_out_val( put_conf = conf, vname = 'kind', & & val = trim(me%kind) ) ! choose output shape kind select case( trim(me%kind) ) case('canoND') call tem_canonicalND_out(me%canoND, conf) case('triangle') call tem_triangle_out(me%triangle, conf) case('stl') call tem_stlHead_out(me%stl_data%head, conf) case('sphere') call tem_sphere_out(me%sphere, conf) case('ellipsoid') call tem_ellipsoid_out(me%ellipsoid, conf) case('cylinder') call tem_cylinder_out(me%cylinder, conf) case('property') call tem_shape_propLabel_out(me%propBits, conf) case('level') call tem_shape_level_out(me%minLevel, me%maxLevel, conf) case('boundary') call tem_shape_bcLabel_out(me%bcLabels, conf) end select call aot_out_close_table( put_conf = conf ) end subroutine tem_shape_out_scal