Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 26. október 2026

Rozdiely pre dead/diplomovka/xpdp/src/gather.c medzi verziami 1.1 a 1.2

verzia 1.1, 2001/09/20 14:12:00 verzia 1.2, 2002/07/30 16:10:45
Riadok 25  void gather(int isp)
Riadok 25  void gather(int isp)
         sp_n_k[isp][0]  *= 2.;          sp_n_k[isp][0]  *= 2.;
         sp_n_k[isp][nc] *= 2.;          sp_n_k[isp][nc] *= 2.;
   
         // Smoothing the charge density of each species          // Smoothing the charge density of each species
   
         for(i=0; i< nsmoothing; i++) One_2_One(sp_n_k[isp], nc);          for(i=0; i< nsmoothing; i++)
                   One_2_One(sp_n_k[isp], nc);
 } // }}}  } // }}}
   
 // Function void setrho(void) {{{  // Function void setrho(void) {{{
Riadok 46  void setrho(void)
Riadok 47  void setrho(void)
 } // }}}  } // }}}
   
 // Smoothing the array using the 1-2-1 method with the proper  // Smoothing the array using the 1-2-1 method with the proper
 // boundary conditions to conserve charge.  // boundary conditions to conserve charge.
   
 // Function void One_2_One(float *ary, int nmax) {{{  // Function void One_2_One(float *ary, int nmax) {{{
 void One_2_One(float *ary, int nmax)  void One_2_One(float *ary, int nmax)
Riadok 57  void One_2_One(float *ary, int nmax)
Riadok 58  void One_2_One(float *ary, int nmax)
   
         if(nlocal < nmax) {          if(nlocal < nmax) {
                 free(temp);                  free(temp);
                 temp = (float *)malloc((nmax+1)*sizeof(float));                  temp = (float *) malloc((nmax+1)*sizeof(float));
                 nlocal = nmax;                  nlocal = nmax;
         }          }
   
         temp[0]= (ary[0] +ary[1])/2;          temp[0]= (ary[0] +ary[1])/2;
         for(i=1; i< nmax; i++)  temp[i]= (ary[i-1] +2*ary[i] +ary[i+1])/4;          for(i=1; i< nmax; i++)
         temp[nmax]= (ary[nmax] +ary[nmax-1])/2;                  temp[i] = (ary[i-1] +2*ary[i] +ary[i+1])/4;
           temp[nmax]  = (ary[nmax] +ary[nmax-1])/2;
   
         for(i=0; i<= nmax; i++) ary[i]= temp[i];          for(i=0; i<= nmax; i++)
                   ary[i]= temp[i];
 } // }}}  } // }}}
   
 // Modeline for ViM {{{1  // Modeline for ViM {{{1

Legend:
Odstranené z verzie1.1  
zmenené riadky
  Pridané vo verzii1.2

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok