<commit_before>/*!
 * \file SU2_CFD.cpp
 * \brief Main file of Computational Fluid Dynamics Code (SU2_CFD).
 * \author Aerospace Design Laboratory (Stanford University) <http://su2.stanford.edu>.
 * \version 2.0.6
 *
 * Stanford University Unstructured (SU2) Code
 * Copyright (C) 2012 Aerospace Design Laboratory
 *
 * 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 3 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, see <http://www.gnu.org/licenses/>.
 */

#include "../include/SU2_CFD.hpp"


/*
 * SU2_CFD.cpp is the main control file for the SU2 tool.
 * Pseudocode:
 *  BEGIN
 *  Initialize data structures
 *  Load in the geometry
 *  Parse the input file and load settings
 *  "Initialize solution and geometry processing" whatever that means
 *  for ExtIter = 0; ExtIter < MaxIter; ExtIter++{
 *      Make an iteration (problem dependent)
 *      Check Convergence of the flow solution (problem dependent)
 *      ??? Not sure ???
 *      if converged{
 *          break
 *      }
 *  }
 *  Write solution files
 *  END
 *
 *  Loading the geometry happens in ______.cpp
 *  Parsing the input file happens in ______.cpp
 *  Iterating the problem is problem dependent, and is located in solution_MATH_PHYSICAL.cpp
 *      MATH is MATH_PROBLEM from the .cfg file
 *      PHYSICAL is PHYSICAL_PROBLEM from the .cfg file
 */


using namespace std;

int main(int argc, char *argv[]) {
	bool StopCalc = false;
	unsigned long StartTime, StopTime, TimeUsed = 0, ExtIter = 0;
	unsigned short iMesh, iZone, iSol, nZone, nDim;
	ofstream ConvHist_file;
	char file_name[200];
	int rank = MASTER_NODE;
	
#ifndef NO_MPI
	/*--- MPI initialization, and buffer setting ---*/
	void *buffer, *old_buffer;
	int size, bufsize;
	bufsize = MAX_MPI_BUFFER;
	buffer = new char[bufsize];
	MPI::Init(argc, argv);
	MPI::Attach_buffer(buffer, bufsize);
	rank = MPI::COMM_WORLD.Get_rank();<commit_msg>Added minor comment to SU2_CFD.cpp<commit_after>/*!
 * \file SU2_CFD.cpp
 * \brief Main file of Computational Fluid Dynamics Code (SU2_CFD).
 * \author Aerospace Design Laboratory (Stanford University) <http://su2.stanford.edu>.
 * \version 2.0.6
 *
 * Stanford University Unstructured (SU2) Code
 * Copyright (C) 2012 Aerospace Design Laboratory
 *
 * 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 3 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, see <http://www.gnu.org/licenses/>.
 */

#include "../include/SU2_CFD.hpp"


/*
 * SU2_CFD.cpp is the main control file for the SU2 tool.
 * Pseudocode:
 *  BEGIN
 *  Initialize data structures
 *  Load in the geometry
 *  Parse the input file and load settings
 *  "Initialize solution and geometry processing" whatever that means
 *  for ExtIter = 0; ExtIter < MaxIter; ExtIter++{
 *      Make an iteration (problem dependent)
 *      Check Convergence of the flow solution (problem dependent)
 *      ??? Not sure ???
 *      if converged{
 *          break
 *      }
 *  }
 *  Write solution files
 *  END
 *
 *  Loading the geometry happens in ______.cpp
 *  Parsing the input file happens in ______.cpp
 *  Iterating the problem is problem dependent, and is located in solution_MATH_PHYSICAL.cpp
 *      MATH is MATH_PROBLEM from the .cfg file
 *      PHYSICAL is PHYSICAL_PROBLEM from the .cfg file
 */


using namespace std;

int main(int argc, char *argv[]) {
	bool StopCalc = false;
	unsigned long StartTime, StopTime, TimeUsed = 0, ExtIter = 0;
    // Add description of iMesh
	unsigned short iMesh, iZone, iSol, nZone, nDim;
	ofstream ConvHist_file;
	char file_name[200];
	int rank = MASTER_NODE;
	
#ifndef NO_MPI
	/*--- MPI initialization, and buffer setting ---*/
	void *buffer, *old_buffer;
	int size, bufsize;
	bufsize = MAX_MPI_BUFFER;
	buffer = new char[bufsize];
	MPI::Init(argc, argv);
	MPI::Attach_buffer(buffer, bufsize);
	rank = MPI::COMM_WORLD.Get_rank();
{'fraction_non_alphanumeric': 0.08808290155440414, 'fraction_numerical': 0.008911917098445596, 'mean_word_length': 3.5144995322731525, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2846660', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1428, 'n_words': 587}