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!

error in gfortran ignores common

Status
Not open for further replies.

zmth

Technical User
Aug 5, 2015
57
PH
Code:
integer*1 n1,nps
common n1,nps
n1=5
nps=4
call try
end
subroutine try
print*,"nps",nps,"n1",n1
end

BUT it does NOT printout 4 for nps nor 5 for n1
what is wrong ?
Also how do i get this post to printout the code in the box for code ? that others are able to do ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top