CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

error in function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 23, 2015, 19:43
Unhappy error in function
  #1
New Member
 
morad
Join Date: Jul 2013
Posts: 8
Rep Power: 12
big-bang is on a distinguished road
helo!

i cant find out this error please help me!
its in module form
tnks alot



program mul_plus
implicit none
real::a,b,multiply,plus

use c

print*,multiply,plus
pause
end program



module c
contains

function plus(a,b)
real::a,b,plus
a=2
b=5
plus=a+b
end function


function multiply(a,b)
real::a,b,multiply
a=2
b=5
multiply=a*b
end function

end module c
big-bang is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 06:42
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
Please help about the VTKFoam liugx212 OpenFOAM Running, Solving & CFD 0 November 18, 2005 18:27


All times are GMT -4. The time now is 14:25.