read_job Subroutine

public subroutine read_job(irep, time, job_file, spy_unit)

Note

The principle of the present function is to read a user-made batch file. The batch file, or job file, contains a sequence of keywords.

Each keyword is an instruction - a macro - for a specific action:

  • ‘READ_SUR’, followed by the path a surface file, makes the program store the surface in an array
  • ‘LSSQ_IMG’, followed by two integers, makes the program subtract a 2D polynomial, which degrees are the provides integers.
  • ‘SMOOTH__’ makes the program smooth the surface.
  • etc.

Some instruction keywords are present in the subroutine but not active; they will be implemented in the future.

Arguments

Type IntentOptional Attributes Name
integer(kind=I4), intent(in) :: irep

repetition number when the program is ran multiple times

character(len=014), intent(in) :: time

execution time

character(len=512), intent(in) :: job_file

job file with macros to execute

integer(kind=I4), intent(in) :: spy_unit

spy file unit