Author |
Message |
Topic: #[SOLVED]# I can't see why this is happening to my variables |
shahrooz
Replies: 4
Views: 6504
|
Forum: Support Posted: Sat Nov 23, 2013 9:29 pm Subject: |
Well I just found what caused the error, after 5 hours CheckMate identified it for me. I forgot to use ChekMate... I was exceeding my array limits...
thanks for your reply |
Topic: #[SOLVED]# I can't see why this is happening to my variables |
shahrooz
Replies: 4
Views: 6504
|
Forum: Support Posted: Sat Nov 23, 2013 8:15 pm Subject: |
P2 = P1
g1(0) = 0
g2(0) = 0
i = 0
!Shooting above the target
DO
g3(0) = P2
K(1,1) = h*g2(i)
K(2,1 ... |
Topic: #[SOLVED]# I can't see why this is happening to my variables |
shahrooz
Replies: 4
Views: 6504
|
Forum: Support Posted: Sat Nov 23, 2013 8:10 pm Subject: |
PROGRAM Shooting_Method
IMPLICIT NONE
REAL, PARAMETER :: h = 0.05 !step size
INTEGER, PARAMETER :: n = (10/h) !number of steps
REAL ... |
Topic: #[SOLVED]# I can't see why this is happening to my variables |
shahrooz
Replies: 4
Views: 6504
|
Forum: Support Posted: Sat Nov 23, 2013 8:06 pm Subject: #[SOLVED]# I can't see why this is happening to my variables |
you don't need to know what I'm going to do with the code the problem is with P2 value as you can see it is used in the second do loop but it gets values that it should not. pay attention to the outpu ... |
Topic: ##[SOLVED]##Simple program not working right |
shahrooz
Replies: 8
Views: 9078
|
Forum: Support Posted: Mon Nov 18, 2013 9:40 pm Subject: |
thanks |
Topic: ##[SOLVED]##Simple program not working right |
shahrooz
Replies: 8
Views: 9078
|
Forum: Support Posted: Fri Nov 15, 2013 11:01 am Subject: |
Hi, thank you all, my problem is solved by implementing your suggestions in my code. However I don't know what is forall command I guess I will learn it in the near future as I progress in learning FO ... |
Topic: ##[SOLVED]##Simple program not working right |
shahrooz
Replies: 8
Views: 9078
|
Forum: Support Posted: Mon Nov 11, 2013 3:13 pm Subject: Re: |
First - try using the double precision real numbers as the standard 4 byte reals do not have the resolution. Check out real*8 and real*10.
Ian
thank you, I will try that |
Topic: ##[SOLVED]##Simple program not working right |
shahrooz
Replies: 8
Views: 9078
|
Forum: Support Posted: Mon Nov 11, 2013 10:23 am Subject: ##[SOLVED]##Simple program not working right |
I need to break 0 to 1 into 10, 100, and 1000 sections i.e 0.0 0.1 0.2 0.3 ... in the first part of my code but it is not working as intended, here is the part of code which relates to this:
Prog ... |
Topic: ##[SOLVED]##Access Violation while Calling Subroutine |
shahrooz
Replies: 3
Views: 7449
|
Forum: Support Posted: Thu Nov 07, 2013 6:31 pm Subject: |
Thank you, I thought fortran transpose function is for square matrices only |
Topic: ##[SOLVED]##Access Violation while Calling Subroutine |
shahrooz
Replies: 3
Views: 7449
|
Forum: Support Posted: Thu Nov 07, 2013 6:12 pm Subject: ##[SOLVED]##Access Violation while Calling Subroutine |
Hi I'm trying to write a code for Curve Fitting, before I go further I should declare that I'm not an experienced programer I'm still learning Fortran and programing. Here is what happens I need to tr ... |
|