Civil Engineering Reference
In-Depth Information
SUBROUTINE ninety_nine(args99)
.
.
.
END SUBROUTINE ninety_nine
END MODULE library_routines
and then
PROGRAM test_program_2
USE library_routines
.
.
.
END PROGRAM test_program_2
1.9.10 Structured programming
The finite element programs which will be described are strongly “structured” in the sense
of Dijkstra (1976). The main feature exhibited by our programs will be seen to be a nested
structure and we will use representations called “structure charts” (Lindsey, 1977) rather
than flow charts to describe their actions.
The main features of these charts are:
(i) The block
Do this
Do that
Do the other
This will be used for the outermost level of each structure chart. Within a block, the
indicated actions are to be performed sequentially.
(ii) The choice
QUESTION?
Answer 1
Answer 2
Answer 3
ACTION 1
ACTION 2
ACTION 3
This corresponds to the IF...THEN...ELSE IF...THEN....END IF or
SELECT CASE type of construct.
Search WWH ::




Custom Search