![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Hello agraham.
You will find the Basic4ppc and VisualBasic source code at http://http://www.basic4ppc.com/foru...ead.php?t=1164 Best regards and thank you Klaus |
|
||||
|
Here you are Klaus. The program is so appalling that I didn't bother to restructure it as I don't understand the program flow. I have been as minimally invasive as I can and have replaced the three For...Next loops that were causing the trouple with synthesised versions - you can easily see where as I have commented out the original code and put a line of "####################" at each location.
I think that I have not altered the calculation in any way but you must run your own cross-checks to make sure. |
|
||||
|
Hi Klaus. I saw in the German forum that your Eigenvalue code doesn't work under the optimising compiler. You should have let me know! Having got it to work before I will not let you down. Version attached that does work. One label ( m2100: ) was out of scope so I moved it and "Do .. Loop" at about line 625 is not valid for the new compiler so I replaced it with a "Do While true .. Loop". Changes commented as before. Usual caveats about testing but the example gives the same results compiled as in the IDE.
|
|
||||
|
Hello agraham,
This is really good news, I was afraid that with the Goto restrictions of new compiler it would have been much more difficult to make the Eigenvalue routine run again, so I left it besides. Yes I should have let you know about it. I introduced your modifications in the whole program and of course it works fine. Speed incease about 8 times, the calculation of an 18*18 matrix takes 5min, yes 300 sec, with the old compiler and now 37 sec. That's a very big improvement ! Thank you very very much for your help. This shows again the big value of this forum. I have updated the program. Natural frequency calculation of mechanical structures Klaus Switzerland |
|
||||
|
I guess that your program uses a lot of arrays containing numeric data. Try declaring those arrays as doubles, this overrides B4PPCs' weak typing, and see if that shaves a few more seconds off the execution time
Code:
Dim someArray(someSize) As double |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Easter Day (calculation algorithm) | maXim | Code Samples & Tips | 2 | 03-19-2008 05:01 PM |
| Natural frequency calculation of mechanical structures | klaus | Share Your Creations | 4 | 12-01-2007 02:49 PM |
| Natural frequency calculation of mechanical structures | klaus | Share Your Creations | 0 | 11-29-2007 06:09 PM |