コード例 #1
0
ファイル: FCSInterface.c プロジェクト: fweik/scafacos
/**
 * return whether parameter values of the FCS solver have changed
 */
fcs_int fcs_get_values_changed(FCS handle)
{
  const char *fnc_name = "fcs_get_box_values_changed";

  CHECK_HANDLE_RETURN_VAL(handle, fnc_name, -1);

  return handle->values_changed;
}
コード例 #2
0
ファイル: FCSInterface.c プロジェクト: fweik/scafacos
/**
 * return the total number of particles in the system
 */
fcs_int fcs_get_max_local_particles(FCS handle)
{
  const char *fnc_name = "fcs_get_max_local_particles";

  CHECK_HANDLE_RETURN_VAL(handle, fnc_name, -1);

  return handle->max_local_particles;
}
コード例 #3
0
ファイル: FCSInterface.c プロジェクト: fweik/scafacos
/**
 * return the method context information
 */
void *fcs_get_method_context(FCS handle)
{
  const char *fnc_name = "fcs_get_method_context";

  CHECK_HANDLE_RETURN_VAL(handle, fnc_name, NULL);

  return handle->method_context;
}
コード例 #4
0
ファイル: FCSInterface.c プロジェクト: fweik/scafacos
/**
 * return the origin vector of the system box
 */
const fcs_float *fcs_get_box_origin(FCS handle)
{
  const char *fnc_name = "fcs_get_box_origin";

  CHECK_HANDLE_RETURN_VAL(handle, fnc_name, NULL);

  return handle->box_origin;
}
コード例 #5
0
ファイル: FCSInterface.c プロジェクト: fweik/scafacos
/**
 * return the periodicity of the system
 */
const fcs_int* fcs_get_periodicity(FCS handle)
{
  const char *fnc_name = "fcs_get_periodicity";

  CHECK_HANDLE_RETURN_VAL(handle, fnc_name, NULL);

  return handle->periodicity;
}
コード例 #6
0
ファイル: FCSInterface.c プロジェクト: fweik/scafacos
/**
 * return the dimensions of the system
 */
fcs_int fcs_get_dimensions(FCS handle)
{
  const char *fnc_name = "fcs_get_dimensions";

  CHECK_HANDLE_RETURN_VAL(handle, fnc_name, -1);

  return handle->dimensions;
}
コード例 #7
0
ファイル: FCSInterface.c プロジェクト: fweik/scafacos
/**
 * return the near-field flag
 */
fcs_int fcs_get_near_field_flag(FCS handle)
{
  const char *fnc_name = "fcs_get_near_field_flag";

  CHECK_HANDLE_RETURN_VAL(handle, fnc_name, -1);

  return handle->near_field_flag;
}
コード例 #8
0
ファイル: FCSInterface.c プロジェクト: fweik/scafacos
/**
 * return the MPI communicator used for the parallel execution
 */
MPI_Comm fcs_get_communicator(FCS handle)
{
  const char *fnc_name = "fcs_get_communicator";

  CHECK_HANDLE_RETURN_VAL(handle, fnc_name, MPI_COMM_NULL);

  return handle->communicator;
}
コード例 #9
0
/**
 * return whether parameter values of the FCS solver have changed
 */
fcs_int fcs_get_values_changed(FCS handle)
{
  CHECK_HANDLE_RETURN_VAL(handle, __func__, -1);

  return handle->values_changed;
}
コード例 #10
0
/**
 * return the total number of particles in the system
 */
fcs_int fcs_get_max_local_particles(FCS handle)
{
  CHECK_HANDLE_RETURN_VAL(handle, __func__, -1);

  return handle->max_local_particles;
}
コード例 #11
0
/**
 * return the method context information
 */
void *fcs_get_method_context(FCS handle)
{
  CHECK_HANDLE_RETURN_VAL(handle, __func__, NULL);

  return handle->method_context;
}
コード例 #12
0
/**
 * return the periodicity of the system
 */
const fcs_int* fcs_get_periodicity(FCS handle)
{
  CHECK_HANDLE_RETURN_VAL(handle, __func__, NULL);

  return handle->periodicity;
}
コード例 #13
0
/**
 * return the origin vector of the system box
 */
const fcs_float *fcs_get_box_origin(FCS handle)
{
  CHECK_HANDLE_RETURN_VAL(handle, __func__, NULL);

  return handle->box_origin;
}
コード例 #14
0
/**
 * return the near-field flag
 */
fcs_int fcs_get_near_field_flag(FCS handle)
{
  CHECK_HANDLE_RETURN_VAL(handle, __func__, -1);

  return handle->near_field_flag;
}
コード例 #15
0
/**
 * return the dimensions of the system
 */
fcs_int fcs_get_dimensions(FCS handle)
{
  CHECK_HANDLE_RETURN_VAL(handle, __func__, -1);

  return handle->dimensions;
}
コード例 #16
0
/**
 * return the MPI communicator used for the parallel execution
 */
MPI_Comm fcs_get_communicator(FCS handle)
{
  CHECK_HANDLE_RETURN_VAL(handle, __func__, MPI_COMM_NULL);

  return handle->communicator;
}