Advertisement
Heart_Under_Blade

proba

Mar 1st, 2022
1,381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if((dx .LE. 0) .AND. (dx .NE. (X_max - X_min)) .OR.
  2.      *(dy .LE. 0) .AND. (dy .NE. (Y_max - Y_min))) then
  3.           write(6,*) 'Input values error:  Wrong x/y step'
  4.           stop
  5.       elseif(X_min .GT. X_max .OR. Y_min .GT. Y_max) then
  6.           write(6,*) 'Input values error: Wrong min/max arguments'
  7.           stop
  8.       endif
  9.       !Checking if step is too low
  10.       !Example: x: 0.01; step: 0.000000001; - error
  11.       temp_x = X_min + dx
  12.       temp_y = Y_min + dy
  13.       if(((temp_x .EQ. X_min) .AND. (dx .NE. (X_max - X_min)))
  14.      *.OR. ((temp_y .EQ. Y_min) .AND. (dy .NE. (Y_max - Y_min)))) then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement