cond_integer_c.f90 Source File


This file depends on

sourcefile~~cond_integer_c.f90~~EfferentGraph sourcefile~cond_integer_c.f90 cond_integer_c.f90 sourcefile~reservoir_conditions_module.f90 reservoir_conditions_module.f90 sourcefile~cond_integer_c.f90->sourcefile~reservoir_conditions_module.f90

Source Code

      subroutine cond_integer_c (op, var_cur, var_tbl)
    
      use reservoir_conditions_module
      
      implicit none

      character(2), intent (in) :: op       !       |operator - <, <=, >, >=, =, /=
      integer, intent (in)  :: var_cur      !       |current variable to check alternative
      integer, intent (in)  :: var_tbl      !       |decision table variable to cpmpare with

      if (op == "<") then
        if (var_cur >= var_tbl) then
          hit = "n"
        end if
      end if
      if (op == ">") then
        if (var_cur <= var_tbl) then
          hit = "n"
        end if
      end if
      if (op == "<=") then
        if (var_cur > var_tbl) then
          hit = "n"
        end if
      end if
      if (op == ">=") then
        if (var_cur < var_tbl) then
          hit = "n"
        end if
      end if
      if (op == "=") then
        if (var_cur /= var_tbl) then
          hit = "n"
        end if
      end if
      if (op == "/=") then
        if (var_cur == var_tbl) then
          hit = "n"
        end if
      end if

      return
      end subroutine cond_integer_c