Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by DanTex

  1. DanTex

    beginner in Fortran77

    Note that Fortran 90 onward is backward compatible with Fortran 77 (only a very few minor exceptions). So... you can read/write F77 with a newer version compiler. And, the newer compilers are much more likely to find "bugs" in some of your older codes. Dan :-)
  2. DanTex

    Fortran -> how to delete double lines?

    Do you mean to delete "Duplicate" lines? It should be very simple to do in fortran (any version from 77 to 2008). Here's a simple pseudo-code-logic: Allocate a character string array, a(:), at lease big enough to store all lines of the file. Read each and every line into a character...
  3. DanTex

    subroutine

    Are you asking someone here to teach you Fortran or do you have a specific question?
  4. DanTex

    Anybody familiar with Lahey/Fijitsu

    Yes. I think it is (for whatever that is worth)! I'm currently doing work with their 7.2 compiler. But.... their 5.6 compiler worked great for me. There isn't that much difference between them. Dan
  5. DanTex

    [Fortran]Multiplying Matrices Using dgemm

    It's surprising that your code compiled ran at all. You've declared three arrays, mac, mac2 and mac3 with unknown sizes. m, n & k must have actual values before you declare mac, mac2 & mac3. Put this statement before your Double Precision line and you'll be fine: (note: this assumes...
  6. DanTex

    nonlinear soil spring at abutment

    After the backwall shears off... the EQ continues. Thus.. the backwall essentially becomes irrelevant. Caltrans does not have a specific policy on how exactly to analyze this situation as it is very complex and even the best analytical models you might come up with are still just going to give...
  7. DanTex

    console app in visual fortran 6.5

    Does VB work with Dos box windows? Hmmm. I know QuickBasic does (from which VB sprang). From my past experience with QB, it is an excellent language for simple Dos screen manipulations (with color). And, since you are already a fortran programmer, picking up the little bit of QB you need...
  8. DanTex

    Text file analyser

    That should be relatively straight forward in most languages. You hint that you have a fortran compiler? Open the file. Read each line (1 at a time) into a long character string. Use the INDEX() function to search for "RUN" until it is found. After finding "RUN" search the remainder of that...
  9. DanTex

    Matrix Bandwidth

    A method that stores only the non-zero's has the "potential" to be much better than a bandwidth solver. It uses less memory (as long as your model is large enough) and probably has to perform fewer calculations also... which in turn means... less accumulated truncation and roundoff errors in...
  10. DanTex

    need to run some code in FORTRAN IV

    Yes. I've seen plenty of codes written by language experts who can cram an amazing amount into a single line of code. I'm impressed by their capability to do that, however, attempting to understand their code or debugging it can be a nightmare. I like to keep the code as simple as possible...
  11. DanTex

    Pile group lateral resistance

    I agree 100% with hokie66. It is Highly unlikely that you want to form a plastic hinge in your pile as that essentially indicates a failure of your pile. The real question might be... at what location on each pile does the maximum moment due to the applied loadings occur and... what is the...
  12. DanTex

    FORTRAN EXCEL INTERACTION

    I don't know what Autodice is. However... as for Fortran and Excel... Opening and closing text files in Fortran is very simple. But, if you are trying to open Excel itself with a file loaded into it, that's a totally different ball game. It should be very easy to use Fortran (most compilers...
  13. DanTex

    Precision

    Hi Turantug, Something doesn't seem quite right. All Fortran compilers should allow you to declare Double Precision variables anytime you want to. If they don't, they simply aren't valid fortran compilers. And, if you are on a Windows computer, then... it is pretty much a given that your...
  14. DanTex

    Precision

    Sometimes it matters, sometimes it doesn't. If he is writing a program that he wishes to use for a long time... or continue to add to and maintane in the future, or in the case that he wants it to run fast ( I doubt that is the case here, but... it is certainly a concern with some codes ). C...
  15. DanTex

    FORTRAN Program for searching files

    Here's a simple example program. It opens an input file. Reads each line of the file. Searches each line for the string, "Member Area". If it finds it, it assumes a real number is on the line after "Member Area" (nothing else on the line after that). It reads the Area value and writes it to...

Part and Inventory Search