class_iterating.f90 Source File


This file depends on

sourcefile~~class_iterating.f90~~EfferentGraph sourcefile~class_iterating.f90 class_iterating.f90 sourcefile~class_psblas.f90 class_psblas.f90 sourcefile~class_iterating.f90->sourcefile~class_psblas.f90 sourcefile~tools_psblas.f90 tools_psblas.f90 sourcefile~class_psblas.f90->sourcefile~tools_psblas.f90 sourcefile~class_stopwatch.f90 class_stopwatch.f90 sourcefile~class_psblas.f90->sourcefile~class_stopwatch.f90 sourcefile~class_stopwatch.f90->sourcefile~tools_psblas.f90

Files dependent on this one

sourcefile~~class_iterating.f90~~AfferentGraph sourcefile~class_iterating.f90 class_iterating.f90 sourcefile~tools_output.f90 tools_output.f90 sourcefile~tools_output.f90->sourcefile~class_iterating.f90 sourcefile~class_iterating_procedures.f90 class_iterating_procedures.f90 sourcefile~class_iterating_procedures.f90->sourcefile~class_iterating.f90 sourcefile~class_exodus_procedures.f90 class_exodus_procedures.f90 sourcefile~class_exodus_procedures.f90->sourcefile~class_iterating.f90 sourcefile~smooth_mesh.f90 smooth_mesh.f90 sourcefile~smooth_mesh.f90->sourcefile~class_iterating.f90 sourcefile~tools_mesh_optimize.f90 tools_mesh_optimize.f90 sourcefile~smooth_mesh.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~tools_mesh_optimize.f90->sourcefile~class_iterating.f90 sourcefile~write_vector_field.f90 write_vector_field.f90 sourcefile~write_vector_field.f90->sourcefile~class_iterating.f90 sourcefile~write_vector_field.f90->sourcefile~tools_output.f90 sourcefile~tools_nemo.f90 tools_nemo.f90 sourcefile~tools_nemo.f90->sourcefile~class_iterating.f90 sourcefile~tools_nemo.f90->sourcefile~tools_output.f90 sourcefile~tools_nemo.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~class_output_procedures.f90 class_output_procedures.F90 sourcefile~class_output_procedures.f90->sourcefile~class_iterating.f90 sourcefile~write_mesh.f90 write_mesh.f90 sourcefile~write_mesh.f90->sourcefile~class_iterating.f90 sourcefile~write_mesh.f90->sourcefile~tools_output.f90 sourcefile~class_vtk_output_procedures.f90 class_vtk_output_procedures.f90 sourcefile~class_vtk_output_procedures.f90->sourcefile~class_iterating.f90 sourcefile~laplacian_smooth.f90 laplacian_smooth.f90 sourcefile~laplacian_smooth.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~write_scalar_field.f90 write_scalar_field.f90 sourcefile~write_scalar_field.f90->sourcefile~tools_output.f90 sourcefile~smooth_surf_vtx.f90 smooth_surf_vtx.f90 sourcefile~smooth_surf_vtx.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~check_right_handed.f90 check_right_handed.f90 sourcefile~check_right_handed.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~smooth_interior_vtx.f90 smooth_interior_vtx.f90 sourcefile~smooth_interior_vtx.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~valid_tet.f90 valid_tet.f90 sourcefile~valid_tet.f90->sourcefile~tools_mesh_optimize.f90 sourcefile~mobile_verts.f90 mobile_verts.f90 sourcefile~mobile_verts.f90->sourcefile~tools_mesh_optimize.f90

Contents

Source Code


Source Code

!
!     (c) 2019 Guide Star Engineering, LLC
!     This Software was developed for the US Nuclear Regulatory Commission (US NRC)
!     under contract "Multi-Dimensional Physics Implementation into Fuel Analysis under
!     Steady-state and Transients (FAST)", contract # NRC-HQ-60-17-C-0007
!
!
!    NEMO - Numerical Engine (for) Multiphysics Operators
! Copyright (c) 2007, Stefano Toninel
!                     Gian Marco Bianchi  University of Bologna
!              David P. Schmidt    University of Massachusetts - Amherst
!              Salvatore Filippone University of Rome Tor Vergata
! All rights reserved.
!
! Redistribution and use in source and binary forms, with or without modification,
! are permitted provided that the following conditions are met:
!
!     1. Redistributions of source code must retain the above copyright notice,
!        this list of conditions and the following disclaimer.
!     2. Redistributions in binary form must reproduce the above copyright notice,
!        this list of conditions and the following disclaimer in the documentation
!        and/or other materials provided with the distribution.
!     3. Neither the name of the NEMO project nor the names of its contributors
!        may be used to endorse or promote products derived from this software
!        without specific prior written permission.
!
! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
! ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
! WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
! DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
! ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
! (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
! LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
! ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
! (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
! SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
!
!---------------------------------------------------------------------------------
!
! $Id: class_iterating.f90 3093 2008-04-22 14:51:09Z sfilippo $
!
! Description:
!    To be added...
!
MODULE class_iterating
    USE class_psblas, ONLY : psb_dpk_
    IMPLICIT NONE

    PRIVATE ! Default
    PUBLIC :: iterating                           ! Class

    TYPE iterating
        PRIVATE
        INTEGER :: nmax
        INTEGER :: icurrent
        REAL(psb_dpk_) :: delta
        REAL(psb_dpk_) :: tol
    CONTAINS
        PROCEDURE :: create_iterating ! Constructor
        PROCEDURE :: nmax_, delta_, tol_
        PROCEDURE :: current_iteration, next_iteration, previous_iteration
        PROCEDURE :: stop_iterating
        PROCEDURE, PRIVATE :: increment_iterating, reset_iterating
        GENERIC, PUBLIC :: increment => increment_iterating
        GENERIC, PUBLIC :: reset => reset_iterating
        PROCEDURE, PRIVATE :: nemo_iterating_sizeof
        GENERIC, PUBLIC :: nemo_sizeof => nemo_iterating_sizeof
    END TYPE iterating


    ! ----- Generic Interfaces -----

    INTERFACE

        ! ----- Constructor -----

        MODULE SUBROUTINE create_iterating(iter,input_file,sec,itype)
            CLASS(iterating),  INTENT(OUT) :: iter
            CHARACTER(len=*), INTENT(IN) :: input_file
            CHARACTER(len=*), INTENT(IN) :: sec
            INTEGER         , INTENT(IN) :: itype
        END SUBROUTINE create_iterating


        ! ----- Getters -----

        MODULE FUNCTION nmax_(iter)
            IMPLICIT NONE
            INTEGER :: nmax_
            CLASS(iterating), INTENT(IN) :: iter
        END FUNCTION nmax_


        MODULE FUNCTION delta_(iter)
            IMPLICIT NONE
            REAL(psb_dpk_) :: delta_
            CLASS(iterating), INTENT(IN) :: iter
        END FUNCTION delta_

        MODULE FUNCTION tol_(iter)
            IMPLICIT NONE
            REAL(psb_dpk_) :: tol_
            CLASS(iterating), INTENT(IN) :: iter
        END FUNCTION tol_

        MODULE FUNCTION current_iteration(iter)
            IMPLICIT NONE
            INTEGER :: current_iteration
            CLASS(iterating), INTENT(IN) :: iter
        END FUNCTION current_iteration


        MODULE FUNCTION next_iteration(iter)
            IMPLICIT NONE
            INTEGER :: next_iteration
            CLASS(iterating) :: iter
        END FUNCTION next_iteration

        MODULE FUNCTION previous_iteration(iter)
            IMPLICIT NONE
            INTEGER :: previous_iteration
            CLASS(iterating) :: iter
        END FUNCTION previous_iteration


        ! ----- Utilities -----

        MODULE FUNCTION stop_iterating(iter,eps)
            IMPLICIT NONE
            LOGICAL :: stop_iterating
            CLASS(iterating),  INTENT(IN) :: iter
            REAL(psb_dpk_), INTENT(IN), OPTIONAL :: eps
        END FUNCTION stop_iterating


        ! ----- Setters -----

        MODULE SUBROUTINE increment_iterating(iter)
            IMPLICIT NONE
            CLASS(iterating), INTENT(INOUT) :: iter
        END SUBROUTINE increment_iterating

        MODULE SUBROUTINE reset_iterating(iter)
            IMPLICIT NONE
            CLASS(iterating), INTENT(INOUT) :: iter
        END SUBROUTINE reset_iterating

        MODULE FUNCTION nemo_iterating_sizeof(iter)
            USE class_psblas, ONLY : nemo_int_long_
            IMPLICIT NONE
            INTEGER(kind=nemo_int_long_)   :: nemo_iterating_sizeof
            CLASS(iterating), INTENT(IN) :: iter
        END FUNCTION nemo_iterating_sizeof
    END INTERFACE


END MODULE class_iterating