https://github.com/geodynamics/citcoms
Raw File
Tip revision: afe1ae73551e31c1cbe9df6d68c9cbee26b07464 authored by Eh Tan on 16 January 2012, 21:21:30 UTC
Merged r16160, r16161, r16216, and r16349 from trunk to v3.1 branch
Tip revision: afe1ae7
Full_geometry_cartesian.c
/*
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 *
 *<LicenseText>
 *
 * CitcomS by Louis Moresi, Shijie Zhong, Lijie Han, Eh Tan,
 * Clint Conrad, Michael Gurnis, and Eun-seo Choi.
 * Copyright (C) 1994-2005, California Institute of Technology.
 *
 * This program 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; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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 this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 *</LicenseText>
 *
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 */
#include <math.h>
#include "element_definitions.h"
#include "global_defs.h"
#include "parsing.h"


void full_set_2dc_defaults(E)
     struct All_variables *E;
{

  E->mesh.nsd = 2;
  E->mesh.dof = 2;

}


void full_set_2pt5dc_defaults(E)
    struct All_variables *E;
{

  E->mesh.nsd = 2;
  E->mesh.dof = 3;

}

void full_set_3dc_defaults(E)
     struct All_variables *E;
{

  E->mesh.nsd = 3;
  E->mesh.dof = 3;

}

void full_set_3dsphere_defaults(E)
     struct All_variables *E;
{
  E->mesh.nsd = 3;
  E->mesh.dof = 3;

  E->sphere.caps = 12;
  E->sphere.max_connections = 6;

  return;
}
back to top