Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (37 sloc) 1.437 kb
/*
Copyright (C) 2010,2011,2012 The ESPResSo project
Copyright (C) 2002,2003,2004,2005,2006,2007,2008,2009,2010
Max-Planck-Institute for Polymer Research, Theory Group
This file is part of ESPResSo.
ESPResSo 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 3 of the License, or
(at your option) any later version.
ESPResSo 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, see <http://www.gnu.org/licenses/>.
*/
/** \file soft_sphere.c
*
* Implementation of \ref soft_sphere.h
*/
#include "soft_sphere.h"
#include "communication.h"
#ifdef SOFT_SPHERE
int soft_sphere_set_params(int part_type_a, int part_type_b,
double a, double n, double cut, double offset)
{
IA_parameters *data = get_ia_param_safe(part_type_a, part_type_b);
if (!data) return ES_ERROR;
data->soft_a = a;
data->soft_n = n;
data->soft_cut = cut;
data->soft_offset = offset;
/* broadcast interaction parameters */
mpi_bcast_ia_params(part_type_a, part_type_b);
return ES_OK;
}
#endif
Jump to Line
Something went wrong with that request. Please try again.