Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Define matrix and iterate equ

Status
Not open for further replies.

hswshock

Technical User
Apr 12, 2011
6
US
Hi, How to define a matrix in G95 and how to iterate equation,ie,U(n+1)=dt/dx*mu*U(n)
 
hswshock said:
How to define a matrix in G95
Look in the Fortran manual/textbook how to define 2-dimensional array
how to iterate equation,ie,U(n+1)=dt/dx*mu*U(n)
It's the same like in other programming languages. IMHO: it's basic question from numerical mathematics. Try first compute some steps on the paper amd when you understand how it works, then try to program it e.g in Fortran.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top