00001 program main
00002
00003 use physicalParameters
00004 use postProcessor
00005 use myFunctions
00006 implicit none
00007
00008 integer i
00009
00010 real(8), allocatable :: X(:)
00011
00012
00013
00014
00015 call initializePhysics()
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 allocate(X(N))
00028
00029
00030
00031
00032 call initialGuess(X,n)
00033
00034
00035
00036
00037
00038 call newton(X,n)
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054 if (printSolution.EQV.ON) then
00055
00056
00057
00058
00059
00060
00061
00062 CALL visualizer(X,N)
00063
00064 end if
00065
00066
00067
00068
00069
00070
00071
00072
00073 if (displaySolution.EQV.ON) then
00074 print*,''
00075 print*,'solution:'
00076 print*,''
00077 do i=1,n
00078 print*,X(i)
00079 end do
00080 end if
00081
00082
00083
00084
00085
00086
00087
00088
00089 end program main