Search:

Type: Posts; User: vikingcarioca

Search: Search took 0.01 seconds.

  1. Open several files , read it and then write

    Hi pals

    Im gonna explain what I need to do.
    First I would like to open 400 files e.g ISO1.dat,..ISO400.dat, within this files I have datas which means numbers for instance( X,Y,Z are vectors)...
  2. Replies
    4
    Views
    1,703

    op was a big mistake of course ui=1.0; but my...

    op was a big mistake of course ui=1.0; but my question now is focus in the results of u[i][j] that probably will 0's and 1's, could you advise me concerning this value u[i][j]
    thanks in advance
  3. Replies
    4
    Views
    1,703

    what is wrong in this simple code

    Hey Pals, here I wrote one simple code to be more readable but something is wrong when i am compile it, the problem is print out the values of f[i][j] is wrong coz is a lot of 0's

    ...
  4. Replies
    8
    Views
    958

    I did it, but doesn't work :-((

    I did it, but doesn't work :-((
  5. Replies
    8
    Views
    958

    well this is the whole code /*Laplace...

    well this is the whole code


    /*Laplace equation 2D*/
    /*Build the Mesh*/
    #include<stdio.h>
    #include<stdlib.h>
    #include<math.h>
    #define max 500...
  6. Replies
    8
    Views
    958

    problems with matrix

    Heys Pals,
    Currently I have the next problem with my code, because of matrix somebody can watch it and help me later thx in advance


    float...
  7. Replies
    7
    Views
    938

    so what i need is to change float for double is...

    so what i need is to change float for double is this correct ?
  8. Replies
    7
    Views
    938

    well I am seeing the results of u[i][j] as 0's,...

    well I am seeing the results of u[i][j] as 0's, means is wrong when I print out u[i][j], and i hink format %lf is correct. I am new in C not an expert
  9. Replies
    7
    Views
    938

    Hi, yeah sorry for my bad explanation, well in...

    Hi, yeah sorry for my bad explanation, well in the section print results i would like to print out the velocities u[i][j] and v[i][j], but I did't get
  10. Replies
    7
    Views
    938

    print ut my results

    Hi pals,
    My problem is I cant print out my results, I tried a lot of things but unfortunately I didn't get help me please
    follow my code


    /*Laplace equation 2D*/
    /*Build the Mesh*/...
  11. Replies
    4
    Views
    801

    well I tried to do what u had told me but I have...

    well I tried to do what u had told me but I have some errors when i try to compile anyway here is my code

    /*Laplace equation 2D*/
    /*Build the Mesh*/
    #include<stdio.h>
    #include<stdlib.h>...
  12. Replies
    4
    Views
    801

    Problems with VOID

    Hi pals, my question is about VOID in C, as I have some experience with fortran I remember that in fortran I can call a subroutine is the same in C with Void ans if is how can I call it
    Thx in...
  13. Replies
    22
    Views
    3,127

    even in void as in the main I need to specify the...

    even in void as in the main I need to specify the size of the array?
  14. Replies
    5
    Views
    825

    well it still doesnt compile i have this error ...

    well it still doesnt compile i have this error


    for(j=1;j<=jmax;j++)
    {
    f[1][j]=ui*x[1];
    f[imax][j]=ui*x[imax];
    }

    Error : arithmetic on pointer to an incomplete type
  15. Replies
    5
    Views
    825

    my question is other, concerning to void in my...

    my question is other, concerning to void in my source I dont get to run it
  16. Replies
    5
    Views
    825

    errors with void

    hi again pals
    I am trying to implemnt my source from fortran to c, using void instead subroutines as in fortran but something is wrong could you help me
    here is my source


    /*Laplace equation...
  17. Replies
    22
    Views
    3,127

    well some problem trying to implement my code...

    well some problem trying to implement my code from fortran to C with void somebody could help me


    void contour (float f[][],float x[],float y[],int jmax, int imax)
    {
    for(j=1;j<=jmax;j++)...
  18. Replies
    22
    Views
    3,127

    So I can use VOID in C as I use subroutine in...

    So I can use VOID in C as I use subroutine in Fortran right
  19. Replies
    22
    Views
    3,127

    subroutine in C

    Hi pals, I tried to implement my code from FORTRAN to C, but I found a problem, how can I call a subroutine in C, I saw that I could use the command VOID but Im not sure, could you explain me this...
  20. Replies
    4
    Views
    1,188

    my problems is in the output of this code, I...

    my problems is in the output of this code, I would like to have u[i][j] as an array in the output, it should be possible to do this?


    fprintf(heat,"%1.5f\n%1.5f\t",t[j],u[i][j]);
  21. Replies
    4
    Views
    1,188

    what i need is my output as an array I dont know...

    what i need is my output as an array I dont know how can i get
  22. Replies
    4
    Views
    1,188

    problems with arrays

    Hi Pals, well my new problem is that I would like the output of my code as an array,and I dont get it at all, I would like to have the results of u[1][1] u[1][2] u[1][3] in my output
    thanks

    ...
  23. Replies
    3
    Views
    864

    Thanks Mats it works. I really appreciate your...

    Thanks Mats it works. I really appreciate your help. I am learning C because my supervisor asked me to learn it
    Regards
  24. Replies
    3
    Views
    864

    problems with divison

    Hi pals I am new in C programm but I have some problems with division in my simple code
    I have problems when I define h=xmax/nstep. I dont know why please help me
    thx



    #include<stdio.h>...
Results 1 to 24 of 24