{"id":36,"date":"2017-09-11T10:26:48","date_gmt":"2017-09-11T13:26:48","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=36"},"modified":"2017-09-11T10:26:48","modified_gmt":"2017-09-11T13:26:48","slug":"index-and-description-of-example-fortran-programs","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/index-and-description-of-example-fortran-programs\/","title":{"rendered":"Index and description of example Fortran programs"},"content":{"rendered":"<h2 id=\"tablepress-1-name\" class=\"tablepress-table-name tablepress-table-name-id-1\">The following is a listing and description of examples from: http:\/\/www.personal.psu.edu\/faculty\/j\/h\/jhm\/f90<\/h2>\n\n<table id=\"tablepress-1\" class=\"tablepress tablepress-id-1\" aria-labelledby=\"tablepress-1-name\">\n<thead>\n<tr class=\"row-1\">\n\t<th class=\"column-1\">Program name:<br \/>\n<br \/>\n<\/th><th class=\"column-2\">What it does:<br \/>\n<br \/>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody class=\"row-striping row-hover\">\n<tr class=\"row-2\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/add-f\/\">add.f<\/a>\t<\/td><td class=\"column-2\">Adds 2 numbers<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-3\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/add2-f\/\">add2.f<\/a>\t<\/td><td class=\"column-2\">add.f using SUBROUTINEs and a MODULE<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-4\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/aorder-f\/\">aorder.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the storage order of a Multi-dimensional array, also the use of the EQUIVALENCE statement.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-5\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/arith-f\/\">arith.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the arithmetic assignments such as order of operations and mixed mode operations. Also uses the DATA statement<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-6\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/arithp-f\/\">arithp.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the arithmetic assigments using parentheses and the PARAMETER statement.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-7\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array1-f\/\">array1.f<\/a><br \/>\n\t<\/td><td class=\"column-2\">Demonstrates use of arrays for data analysis-max, min, and average and use of formatted output.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-8\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array1s-f\/\">array1s.f<\/a>\t<\/td><td class=\"column-2\">Same as array1.f except uses subroutines for data analysis. Demonstrates how to pass arrays between the main program and subprograms.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-9\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=56&amp;preview=true\">array2.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of arrays with Fortran 90 specifications.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-10\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array2se-f\/\">array2s.f<\/a>\t<\/td><td class=\"column-2\">Same as array2.f except it uses subroutines for data analysis and Fortran90 size declarations.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-11\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array2se-f\/\">array2se.f<\/a>\t<\/td><td class=\"column-2\">Same as array2.fand array2s.f except it uses subroutines and Fortran 77 array size declarations.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-12\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array2sf-f\/\">array2sf.f<\/a>\t<\/td><td class=\"column-2\">Another rewrite of array2.f.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-13\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array3-f\/\">array3.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of the ALLOCATE statement for declaring arrays of unknown size.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-14\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array3a-f\/\">array3a.f<\/a>\t<\/td><td class=\"column-2\">Program very similar to array3.f but examines the input data file to determine the size of the input array. Examines input file <a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array3a-in\/\">array3a.in.<\/a><\/td>\n<\/tr>\n<tr class=\"row-15\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array3as-f\/\">array3as.f<\/a>\t<\/td><td class=\"column-2\">Same program as array3a.f except it demonstrates the use of the ALLOCATE statement with subroutines.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-16\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array3b-f\/\">array3b.f<\/a>\t<\/td><td class=\"column-2\">Another use of the ALLOCATE statement determining the size from the input file. Uses the input file <a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array3b-in\/\">array3b.in.<\/a><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-17\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array3c-f\/\">array3c.f<\/a>\t<\/td><td class=\"column-2\">Another array program for arrays of unknown size using Fortran 77's PARAMETER statement rather than ALLOCATE.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-18\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/array3e-f\/\">array3e.f<\/a>\t<\/td><td class=\"column-2\">Array program which demonstrates the MISUSE of the ALLOCATE statement.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-19\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/associated-f\/\">associated.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of pointers and targets and tests their association.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-20\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/clobber-f\/\">clobber.f<\/a>\t<\/td><td class=\"column-2\">Illustrates the pitfalls of poorly indexing arrays.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-21\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/debug-f\/\">debug.f<\/a>\t<\/td><td class=\"column-2\">Heat Transfer Coefficient program with errors which need to be fixed.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-22\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/debug1-f\/\">debug1.f\t<\/a><\/td><td class=\"column-2\">Demonstrates the debugging process.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-23\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/dimtest-f\/\">dimtest.f\t<\/a><\/td><td class=\"column-2\">Tests the DIM option for the Fortran 90 intrinsic functions sum, minval, and maxval for use with arrays. Associated with sample output <a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/dimtest-out\/\">dimtest.out<\/a>.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-24\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/dual-errors-f\/\">dual-errors.f<\/a>\t<\/td><td class=\"column-2\">Example of the use of the INTERFACE structure creating a generic function interface.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-25\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/dual-interface-f\/\">dual-interface.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of the INTERFACE structure which creates a generic function which can be used with both real and integer values.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-26\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/errors-f\/\">errors.f<\/a>\t<\/td><td class=\"column-2\">Program with several errors due to the poor location of statements.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-27\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/format-f\/\">format.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the many uses of the Format statement. Generates sample file <a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/format-out\/\">format.out.<\/a><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-28\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/funspeed-f\/\">funspeed.f<\/a>\t<\/td><td class=\"column-2\">Program similar to speed.f which uses functions to do all of the calculations.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-29\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/gp-int1\/\">gp-int1<\/a>\t<\/td><td class=\"column-2\">Demonstrates use of gnuplot to graph data from two input files. Sample gnuplot input file.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-30\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/gp-int2\/\">gp-int2<\/a>\t<\/td><td class=\"column-2\">Another sample gnuplot input file.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-31\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/gp-int3\/\">gp-int3<\/a>\t<\/td><td class=\"column-2\">\" \" \"<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-32\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/grades1-f\/\">grades1.f\t<\/a><\/td><td class=\"column-2\">Program which uses arrays and subroutines to calculate and store grades. Associated with <a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/grades-in\/\">grades.in.<\/a><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-33\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/htcoef-f\/\">htcoef.f<\/a>\t<\/td><td class=\"column-2\">Program which calculates approximate heat transfer coefficients for a 1 inch pipe for several Reynolds numbers.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-34\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/htcoef1-f\/\">htcoef1.f<\/a>\t<\/td><td class=\"column-2\">Same as htcoef.f except it calls a function to do the calculations.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-35\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/htcoef2-f\/\">htcoef2.f<\/a>\t<\/td><td class=\"column-2\">Same as htcoef.f except it demonstrates the fact that variables of the same name in the main program and subprograms can have different values.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-36\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/htcoef3-f\/\">htcoef3.f<\/a>\t<\/td><td class=\"column-2\">Program very similar to htcoef1.f and htcoef2.f which uses an exponentiation trick to increase the speed.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-37\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/iftests-f\/\">iftests.f<\/a><\/td><td class=\"column-2\">Shows the many uses of the IF statement.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-38\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/inter1-f\/\">inter1.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates 2 simple methods of interpolation (linear and cubic) for smoothly joining results from 2 disjoint regions.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-39\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/inter2-f\/\">inter2.f<\/a>\t<\/td><td class=\"column-2\">Same as inter1.f except interpolates different data.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-40\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/inter3-f\/\">inter3.f<\/a>\t<\/td><td class=\"column-2\">Similar to inter1.f and inter2.f but uses a weighted transition.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-41\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/interface-f\/\">interface.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of the INTERFACE structure which allows the use of FUNCTIONS with arrays.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-42\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/linint1-f\/\">linint1.f<\/a>\t<\/td><td class=\"column-2\">Subroutine which interpolates y-values given an x-value and a table of y-values.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-43\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/linint2-f\/\">linint2.f<\/a>\t<\/td><td class=\"column-2\">Subroutine similar to linint1.f but uses tables of x and y values.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-44\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/linint3-f\/\">linint3.f<\/a>\t<\/td><td class=\"column-2\">Subroutine similar to linint1.f and linint2.f but more efficient.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-45\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/linint4-f\/\">linint4.f<\/a>\t<\/td><td class=\"column-2\">Subroutine similar to linint1.f , linint2.f, and linint3.f but even more efficient.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-46\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/mathin\/\">mathin<\/a>\t<\/td><td class=\"column-2\">Sample file of Mathematica commands.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-47\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/matprod-f\/\">matprod.f\t<\/a><\/td><td class=\"column-2\">Multiplies two matrices together.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-48\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/module-f\/\">module.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of the MODULE structure within a main program and its subprograms.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-49\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/newton1-f\/\">newton1.f<\/a>\t<\/td><td class=\"column-2\">Sample program using NEWTON ITERATION to solve an equation.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-50\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/newton2-f\/\">newton2.f<\/a>\t<\/td><td class=\"column-2\">More complicated version of newton1.f which uses statement functions and do loops.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-51\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/noadv-f\/\">noadv.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of the NO ADVANCE option on READ and WRITE.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-52\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/pawsum-f\/\">pawsum.f\t<\/a><\/td><td class=\"column-2\">Array program which uses MAX, MIN, implied DO loops, DATA statements, and other Fortran 90 constructs.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-53\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/plot1-f\/\">plot1.f<\/a>\t<\/td><td class=\"column-2\">Plots sine function.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-54\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/plot2-f\/\">plot2.f<\/a>\t<\/td><td class=\"column-2\">Program similar to plot1.f except subroutines are used. Illustrates EXTERNAL and INTRINSIC statements<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-55\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=157&amp;preview=true\">pointers.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of pointers to manipulate sections of arrays. Generates the file <a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/pointers-out\/\">pointers.out<\/a><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-56\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/ranges-f\/\">ranges.f<\/a>\t<\/td><td class=\"column-2\">Displays the smallest and largest absolute values that can be represented with each of several data types. Uses Fortran 90 statements TINY and HUGE.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-57\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/secant-f\/\">secant.f<\/a>\t<\/td><td class=\"column-2\">Uses secant iteration to find the roots of an equation. Compares solution to Newton Iteration of same equation.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-58\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/sifunc-f\/\">sifunc.f<\/a>\t<\/td><td class=\"column-2\">Introduction to the statement function.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-59\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/speed-f\/\">speed.f<\/a>\t<\/td><td class=\"column-2\">Times three different methods of calculating the dot product of long vectors.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-60\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/speedf-f\/\">speedf.f<\/a>\t<\/td><td class=\"column-2\">Program similar to speed.f.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-61\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/sums-f\/\">sums.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the Fortran 90 SUM function with the MASK option.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-62\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/trig-f\/\">trig.f<\/a>\t<\/td><td class=\"column-2\">Calculates the SIN and COS of an angle given in degrees.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-63\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/where-f\/\">where.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of WHERE, ELSE WHERE, and END WHERE.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-64\">\n\t<td class=\"column-1\"><\/td><td class=\"column-2\"><div align=\"center\">Ordinary Differential Equation Programs<\/div><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-65\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/fall-f\/\">fall.f<\/a><\/td><td class=\"column-2\">Calculates the dynamics of a falling body.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-66\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/fall1-f\/\">fall1.f<\/a>\t<\/td><td class=\"column-2\">Program similar to fall.f but introduces MODULES.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-67\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/fall2-f\/\">fall2.f<\/a>\t<\/td><td class=\"column-2\">Calculates the dynamics of a falling body attached to a spring.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-68\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/fall3-f\/\">fall3.f<\/a>\t<\/td><td class=\"column-2\">Program similar to fall2.f but give an answer that is second order accurate (proportional to dt**2)<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-69\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/odeint-f\/\">odeint.f<\/a>\t<\/td><td class=\"column-2\">Demonstrates the use of Runge-Kutta, Adams-Bashford, and Adams-Moulton methods for solving ODEs<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-70\">\n\t<td class=\"column-1\"><\/td><td class=\"column-2\"><div align=\"center\">Curvefit Programs<\/div><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-71\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/quad-f\/\">quad.f<\/a>\t<\/td><td class=\"column-2\">Performs a Quadratic spline fit to a specified data file (with .txt extension)<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-72\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/rholiq-f\/\">rholiq.f<\/a>\t<\/td><td class=\"column-2\">Subroutine which evaluates the density of Freon and its derivatives with respect to other properties.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-73\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/satprs-f\/\">satprs.f<\/a>\t<\/td><td class=\"column-2\">Function which evaluates the saturation pressure of Freon as a function of saturation temperature.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-74\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/thcl-f\/\">thcl.f<\/a>\t<\/td><td class=\"column-2\">Function which evaluates the liquid thermal conductivity of Freon as a function of enthalpy.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-75\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/viscl-f\/\">viscl.f<\/a>\t<\/td><td class=\"column-2\">Function which evaluates the liquid dynamic viscosity as a function of liquid enthalpy and pressure.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-76\">\n\t<td class=\"column-1\"><\/td><td class=\"column-2\"><div align=\"center\">Integration Programs<br \/>\n<\/div><\/td>\n<\/tr>\n<tr class=\"row-77\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/trapezoid-f\/\">trapezoid.f<\/a>\t<\/td><td class=\"column-2\">Program which demonstrates the Trapezoidal rule of integration.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-78\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/trapz1-f\/\">trapz1.f<\/a>\t<\/td><td class=\"column-2\">Program similar to <a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/trapcom-h\/\">trapezoid.f <\/a>which uses the file trapcom.h through an INCLUDE statement .<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-79\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/trapz2-f\/\">trapz2.f<\/a>\t<\/td><td class=\"column-2\">Program similar to trapezoid.f which uses a MODULE.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-80\">\n\t<td class=\"column-1\"><\/td><td class=\"column-2\"><div align=\"center\">Programs using Character Variables<br \/>\n<\/div><\/td>\n<\/tr>\n<tr class=\"row-81\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/charvar-f\/\">charvar.f<\/a>\t<\/td><td class=\"column-2\">Program which demonstrates the use of character variables in Fortran 77.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-82\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/charvr90-f\/\">charvr90.f<\/a>\t<\/td><td class=\"column-2\">Program whic demonstrates the use of character variables in Fortran 90.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-83\">\n\t<td class=\"column-1\"><\/td><td class=\"column-2\"><div align=\"center\">Programs associated with Least Squares Fit<\/div><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-84\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/gendata-f\/\">gendata.f<\/a>\t<\/td><td class=\"column-2\">Creates fake experimental data with a random error.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-85\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/lin1-f\/\">lin1.f<\/a>\t<\/td><td class=\"column-2\">Program which tests linear equation solvers and sets up a 6x6 system of linear equations. Generates the file<a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/lin1-out\/\"> lin1.out<\/a><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-86\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/lsq-f\/\">lsq.f\t<\/a><\/td><td class=\"column-2\">Program which performs a least squares fit of a quadratic equation to given data. This particular program gives the location of a falling object at various times. Associated with the file <a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/fall-txt\/\">fall.txt<\/a><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-87\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/lsq2-f\/\">lsq2.f<\/a>\t<\/td><td class=\"column-2\">Program similar to lsq.f which takes advantage of Fortran 90 statements.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-88\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/lsq3-f\/\">lsq3.f<\/a>\t<\/td><td class=\"column-2\">Program similar to lsq.f which uses code that is optimized for parallel or vector processors.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-89\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/quadfit-f\/\">quadfit.f<\/a>\t<\/td><td class=\"column-2\">Program which takes data from two arrays and fits them to a quadratic equation.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-90\">\n\t<td class=\"column-1\"><\/td><td class=\"column-2\"><div align=\"center\">Programs associated with Sorting Data<\/div><br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-91\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/drvsort-f\/\">drvsort.f<\/a>\t<\/td><td class=\"column-2\">Program which drives sorting subroutines.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-92\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/sort1-f\/\">sort1.f<\/a>\t<\/td><td class=\"column-2\">Example of a SELECTION SORT using Fortran 90.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-93\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/sort2-f\/\">sort2.f<\/a>\t<\/td><td class=\"column-2\">Example of a BUBBLE SORT.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-94\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/sort3-f\/\">sort3.f<\/a>\t<\/td><td class=\"column-2\">Example of an INSERTION SORT.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-95\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/sort3a-f\/\">sort3a.f<\/a>\t<\/td><td class=\"column-2\">Example of an INSERTION SORT using Fortran 90 Functions.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-96\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/sorthalf-f\/\">sorthalf.f\t<\/a><\/td><td class=\"column-2\">Sorts an array also making the same interchanges in an auxiliary array. Array can be sorted in increasing or decreasing order.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-97\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/sortout\/\">sortout<\/a>\t<\/td><td class=\"column-2\">Test of all sorting subroutines.<br \/>\n<\/td>\n<\/tr>\n<tr class=\"row-98\">\n\t<td class=\"column-1\"><a href=\"http:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-content\/uploads\/sites\/85\/2017\/09\/Fortran_JMBundle.zip\">Bundle file<\/a>\t<\/td><td class=\"column-2\">For those who want all!.<br \/>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<!-- #tablepress-1 from cache -->\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":22,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[],"tags":[],"class_list":["post-36","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/comments?post=36"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/36\/revisions"}],"predecessor-version":[{"id":37,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/36\/revisions\/37"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}