<commit_before>/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    FEMTruss.cxx
  Language:  C++
  Date:      $Date$
  Version:   $Revision$

  Copyright (c) 2002 Insight Consortium. All rights reserved.
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

// disable debug warnings in MS compiler
#ifdef _MSC_VER
#pragma warning(disable: 4786)
#endif

#include "itkFEM.h"
#include "itkFEMItpackLinearSystemWrapper.h"
#include <iostream>

using namespace itk::fem;
using namespace std;




/**
 * This example constructs a same problem as described in file truss.fem
 * by creating the appropriate classes.
 */
int main( int argc, char *argv[] ) {

  /**
   * First we create the FEM solver object. This object stores pointers
   * to all objects that define the FEM problem. One solver object
   * effectively defines one FEM problem.
   */
  Solver S;

  /*
   * Set the linear system wrapper object that we wish to use.
   */
  ItpackLinearSystemWrapper itpack;
  itpack.SetMaximumNonZeroValuesInMatrix(1000);
  S.SetLinearSystemWrapper(&itpack);




  /**
   * Below we'll define a FEM problem described in the chapter 25.3-4,
   * from the book, which can also be downloaded from 
   * http://titan.colorado.edu/courses.d/IFEM.d/IFEM.Ch25.d/IFEM.Ch25.pdf
   */


<commit_msg>FIX: works with itpack solver<commit_after>/*=========================================================================

  Program:   Insight Segmentation & Registration Toolkit
  Module:    FEMTruss.cxx
  Language:  C++
  Date:      $Date$
  Version:   $Revision$

  Copyright (c) 2002 Insight Consortium. All rights reserved.
  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even 
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
     PURPOSE.  See the above copyright notices for more information.

=========================================================================*/

// disable debug warnings in MS compiler
#ifdef _MSC_VER
#pragma warning(disable: 4786)
#endif

#include "itkFEM.h"
#include "itkFEMLinearSystemWrapperItpack.h"
#include <iostream>

using namespace itk::fem;
using namespace std;




/**
 * This example constructs a same problem as described in file truss.fem
 * by creating the appropriate classes.
 */
int main( int argc, char *argv[] ) {

  /**
   * First we create the FEM solver object. This object stores pointers
   * to all objects that define the FEM problem. One solver object
   * effectively defines one FEM problem.
   */
  Solver S;

  /*
   * Set the linear system wrapper object that we wish to use.
   */
  LinearSystemWrapperItpack itpack;
  itpack.SetMaximumNonZeroValuesInMatrix(1000);
  S.SetLinearSystemWrapper(&itpack);




  /**
   * Below we'll define a FEM problem described in the chapter 25.3-4,
   * from the book, which can also be downloaded from 
   * http://titan.colorado.edu/courses.d/IFEM.d/IFEM.Ch25.d/IFEM.Ch25.pdf
   */



{'fraction_non_alphanumeric': 0.16391995291347852, 'fraction_numerical': 0.011771630370806356, 'mean_word_length': 3.780590717299578, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4641296', 'n_tokens_mistral': 1024, 'n_tokens_neox': 923, 'n_words': 338}