zero_visco_4.c 2.66 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
/*------------------------------------------------------------------------
 * Copyright (C) 2011 For the list of authors, see file AUTHORS.
 *
 * This file is part of SOFI2D.
 *
 * SOFI2D is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 2.0 of the License only.
 *
 * SOFI2D is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SOFI2D. See file COPYING and/or
 * <http://www.gnu.org/licenses/gpl-2.0.html>.
 --------------------------------------------------------------------------*/
#include "fd.h"
void zero_visco_4 ( int ny1, int ny2, int nx1, int nx2,  float ** vxx_1,float ** vxx_2,float ** vxx_3,float ** vxx_4,float ** vyy_1,float ** vyy_2,float ** vyy_3,float ** vyy_4,float ** vxy_1,float ** vxy_2,float ** vxy_3,float ** vxy_4,float ** vyx_1,float ** vyx_2,float ** vyx_3,float ** vyx_4,float ** svx_1,float ** svx_2,float ** svx_3,float ** svx_4,float ** svy_1,float ** svy_2,float ** svy_3,float ** svy_4,float ***pr_2,float ***pr_3,float ***pr_4, float ***pp_2, float ***pp_3, float ***pp_4, float ***pq_2, float ***pq_3, float ***pq_4){
    
    register int j,i,l;
    extern int L;
    for (j=ny1;j<=ny2;j++){
        for (i=nx1;i<=nx2;i++){
            vxx_1[j][i]=0.0;
            vxx_2[j][i]=0.0;
            vxx_3[j][i]=0.0;
            vxx_4[j][i]=0.0;
            vyy_1[j][i]=0.0;
            vyy_2[j][i]=0.0;
            vyy_3[j][i]=0.0;
            vyy_4[j][i]=0.0;
            vxy_1[j][i]=0.0;
            vxy_2[j][i]=0.0;
            vxy_3[j][i]=0.0;
            vxy_4[j][i]=0.0;
            vyx_1[j][i]=0.0;
            vyx_2[j][i]=0.0;
            vyx_3[j][i]=0.0;
            vyx_4[j][i]=0.0;
            svx_1[j][i]=0.0;
            svx_2[j][i]=0.0;
            svx_3[j][i]=0.0;
            svx_4[j][i]=0.0;
            svy_1[j][i]=0.0;
            svy_2[j][i]=0.0;
            svy_3[j][i]=0.0;
            svy_4[j][i]=0.0;
        }
    }
    
    for (j=ny1;j<=ny2;j++){
        for (i=nx1;i<=nx2;i++){
            for (l=1;l<=L;l++){
                pr_2[j][i][l] = 0.0;
                pr_3[j][i][l] = 0.0;
                pr_4[j][i][l] = 0.0;

                pp_2[j][i][l] = 0.0;
                pp_3[j][i][l] = 0.0;
                pp_4[j][i][l] = 0.0;

                pq_2[j][i][l] = 0.0;
                pq_3[j][i][l] = 0.0;
                pq_4[j][i][l] = 0.0;
            }
        }
    }
    
}