# any sugestion

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 March 16, 2010, 15:17 any sugestion #1 New Member   Join Date: Mar 2010 Posts: 1 Rep Power: 0 Dear all I have matrix "A" defined in (0,m)(0,m), I want to create another matrix "B" with same data as A but in different range ,i.e., (-1,m+1)(-1,m+1). For this I wrote the following: do j=0,m do i=0,m B(I,J)=A(I,J) end do enddo do j=0,m B(-1,J)=A(m,J) B(-1,m+1)=A(m,0) enddo do i=0,m B(i,-1)=A(i,m) B(m+1,-1)=A(0,m) enddo B(-1,-1)=A(m,m) B(m+1,-1)=A(0,m) B(-1,m+1)=A(m,0) B(m+1,m+1)=A(0,0) Are these new coordinates are right or not? Thank you a lot. Bird

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post msrinath80 OpenFOAM Running, Solving & CFD 156 January 2, 2014 19:17

All times are GMT -4. The time now is 15:04.

 Contact Us - CFD Online - Privacy Statement - Top