block_assign_block Subroutine

private pure subroutine block_assign_block(lhs, rhs)

Operator =.

Arguments

Type IntentOptional AttributesName
class(block_object), intent(inout) :: lhs

Left hand side.

type(block_object), intent(in) :: rhs

Right hand side.


Source Code


Source Code

   pure subroutine block_assign_block(lhs, rhs)
   !< Operator `=`.
   class(block_object), intent(inout) :: lhs !< Left hand side.
   type(block_object),  intent(in)    :: rhs !< Right hand side.

   lhs%error        = rhs%error
   lhs%signature    = rhs%signature
   if (allocated(rhs%cell)) then
      if (allocated(lhs%cell)) then
         call lhs%cell%destroy
         deallocate(lhs%cell)
      endif
      lhs%cell = rhs%cell
   endif
   if (allocated(rhs%face_i)) then
      if (allocated(lhs%face_i)) then
         call lhs%face_i%destroy
         deallocate(lhs%face_i)
      endif
      lhs%face_i = rhs%face_i
   endif
   if (allocated(rhs%face_j)) then
      if (allocated(lhs%face_j)) then
         call lhs%face_j%destroy
         deallocate(lhs%face_j)
      endif
      lhs%face_j = rhs%face_j
   endif
   if (allocated(rhs%face_k)) then
      if (allocated(lhs%face_k)) then
         call lhs%face_k%destroy
         deallocate(lhs%face_k)
      endif
      lhs%face_k = rhs%face_k
   endif
   if (allocated(rhs%node)) then
      if (allocated(lhs%node)) then
         call lhs%node%destroy
         deallocate(lhs%node)
      endif
      lhs%node = rhs%node
   endif
   endsubroutine block_assign_block


adim_assign_adim allocate_blocks block_assign_block block_d_assign_block_d cell_assign_cell cells_number cells_number check cli_parse cli_parse cli_parse close compute_extents compute_faces_metrics compute_metrics compute_metrics compute_reference_values compute_space_operator compute_volumes correct_metrics cp create_linspace description description description description description description description description description destroy destroy destroy destroy destroy destroy destroy destroy destroy destroy destroy destroy destroy destroy destroy err_assign_err face_assign_face file_assign_file free_assign_free grid_d_assign_grid_d initialize initialize initialize initialize initialize initialize initialize initialize initialize initialize initialize initialize initialize initialize initialize initialize_unix initialize_windows integrate interpolate_at_nodes iolength iolength iopos_block_nodes is_the_end load_file_grid load_file_name_from_file load_file_parameters load_from_file load_from_file load_from_file load_from_file load_from_file load_from_file load_from_file load_grid_dimensions_from_file load_input_files load_nodes_from_file load_nodes_from_file mkdir node_assign_node node_to_center nodes_number nodes_number nullify_normals open os_assign_os parse_command_line_interface progress rm save_file_grid save_file_grid save_file_grid_tec save_file_grid_vtk save_file_name_into_file save_file_parameters save_grid_dimensions_into_file save_into_file save_into_file save_into_file save_into_file save_into_file save_into_file save_into_file save_nodes_into_file save_nodes_into_file set_command_line_interface set_stop solver_assign_solver time_assign_time update