Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in applications/C* directories #13183

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
def AssembleTestSuites():
''' Populates the test suites to run.

Populates the test suites to run. At least, it should pupulate the suites:
Populates the test suites to run. At least, it should populate the suites:
"small", "nighlty" and "all"

Return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def AssembleTestSuites():
''' Populates the test suites to run.

Populates the test suites to run. At least, it should pupulate the suites:
Populates the test suites to run. At least, it should populate the suites:
"small", "nighlty" and "all"

Return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class KRATOS_API(CHIMERA_APPLICATION) ApplyChimera : public Process {
* added.
* @param rConstraintIdVector The vector of the constraints Ids which is
* accessed with StartIndex.
* @param rMsContainer The Constraint container to which the contraints are
* @param rMsContainer The Constraint container to which the constraints are
* added.
*/
template <typename TVariableType>
Expand All @@ -247,7 +247,7 @@ class KRATOS_API(CHIMERA_APPLICATION) ApplyChimera : public Process {
MasterSlaveConstraintContainerType& rMsContainer);

/**
* @brief This function reserves the necessary memory for the contraints in
* @brief This function reserves the necessary memory for the constraints in
* each thread
* @param rModelPart The modelpart to which the constraints are to be added.
* @param rContainerVector The container vector which has constraints to
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class KRATOS_API(CHIMERA_APPLICATION) ChimeraHoleCuttingUtility
* @param rModelPart The modelpart where the hole is to be cut.
* @param rHoleModelPart The modelpart containing the nodes and corresponding elements from the cut hole. (deactivated elements)
* @param rHoleBoundaryModelPart Boundary modelpart of the rHoleModelPart
* @param Distance is the the distance (magnitude) at which hole is to be cut from the zero distance layer.
* @param Distance is the distance (magnitude) at which hole is to be cut from the zero distance layer.
*/
template<int TDim>
void CreateHoleAfterDistance(ModelPart &rModelPart,
Expand All @@ -113,9 +113,9 @@ class KRATOS_API(CHIMERA_APPLICATION) ChimeraHoleCuttingUtility
* @brief Removes the elements which are out of the domain.
* An element is removed even if one of its nodes is out of the domain (-ve or +ve) as indicated by GetInside and MainDomainOrNot
* @param rModelPart The modelpart From where the elements are to be removed.
* @param rModifiedModelPart The modified modelpart without the the elements which are out side.
* @param rModifiedModelPart The modified modelpart without the elements which are out side.
* @param DomainType says which sign (-ve or +ve) is inside
* @param OverLapDistance is the the distance (magnitude) at which hole is to be cut from the zero distance layer.
* @param OverLapDistance is the distance (magnitude) at which hole is to be cut from the zero distance layer.
* @param GetInside works in combination with MainDomainOrNot to get the feeling of what is inside or what is outside.
*/
template<int TDim>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,11 +432,11 @@ class CO_SIM_IO_API ModelPart
std::unique_ptr<ModelPart> mpLocalModelPart;
std::unique_ptr<ModelPart> mpGhostModelPart;

// this contains the the map of ModelPart with Ghost Nodes
// this contains the map of ModelPart with Ghost Nodes
// for communication / synchronization the same is needed for the local nodes, i.e.
// the ModelPart needs to know where its local nodes exist as ghost nodes
// in Kratos this is computed with the ParallelFillCommunicator
// Here is can be added in the future if required
// It can be added here in the future if required
PartitionModelPartsContainerType mPartitionModelParts;

NodesContainerType::const_iterator FindNode(const IdType I_Id) const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void WriteVtk(const Info& I_Settings, const ModelPart& I_ModelPart)
}

// write cells connectivity
const auto const_id_map = id_map; // const reference to not accidentially modify the map
const auto const_id_map = id_map; // const reference to not accidentally modify the map
output_file << "CELLS " << I_ModelPart.NumberOfElements() << " " << cell_list_size << "\n";
for (const auto& r_elem : I_ModelPart.Elements()) {
const std::size_t num_nodes_cell = r_elem.NumberOfNodes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,7 @@
# endif // !defined(ASIO_DISABLE_STD_COROUTINE)
#endif // !defined(ASIO_HAS_STD_COROUTINE)

// Compiler support for the the [[nodiscard]] attribute.
// Compiler support for the [[nodiscard]] attribute.
#if !defined(ASIO_NODISCARD)
# if defined(__has_cpp_attribute)
# if __has_cpp_attribute(nodiscard)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace error {
enum basic_errors
{
/// Permission denied.
access_denied = ASIO_SOCKET_ERROR(EACCES),
access_denied = ASIO_SOCKET_ERROR(EACCESS),

/// Address family not supported by protocol.
address_family_not_supported = ASIO_SOCKET_ERROR(EAFNOSUPPORT),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ void spawn(ASIO_MOVE_ARG(Function) function,
* This function is used to launch a new coroutine.
*
* @param handler A handler to be called when the coroutine exits. More
* importantly, the handler provides an execution context (via the the handler
* importantly, the handler provides an execution context (via the handler
* invocation hook) for the coroutine. The handler must have the signature:
* @code void handler(); @endcode
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ def __init__(self, custom_settings, model, name="default", solver_name="default_
# dimensionality of the data
if self.is_scalar_variable:
if self.dimension != -1:
self._RaiseException('"dimension" cannot be specifed for scalar variables!')
self._RaiseException('"dimension" cannot be specified for scalar variables!')
self.dimension = 1 # needed in other places, e.g. for "Size"
else:
if self.dimension < 1:
self._RaiseException('"dimension" has to be specifed for vector variables!')
self._RaiseException('"dimension" has to be specified for vector variables!')
else:
if self.variable_type == "Array" and self.dimension not in [1,2,3]:
self._RaiseException('"dimension" can only be 1,2,3 when using variables of type "Array"')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(self, settings, solver_wrappers, process_info, data_communicator):
if file_handler_settings.Has("file_name"):
warn_msg = 'Unexpected user-specified entry found in "output_file_settings": {"file_name": '
warn_msg += '"' + file_handler_settings["file_name"].GetString() + '"}\n'
warn_msg += 'Using this specififed file name instead of the default "' + output_file_name + '"'
warn_msg += 'Using this specified file name instead of the default "' + output_file_name + '"'
cs_tools.cs_print_info(self._ClassName(), warn_msg)
else:
file_handler_settings.AddEmptyValue("file_name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, settings, solver_wrappers, process_info, data_communicator):
if file_handler_settings.Has("file_name"):
warn_msg = 'Unexpected user-specified entry found in "output_file_settings": {"file_name": '
warn_msg += '"' + file_handler_settings["file_name"].GetString() + '"}\n'
warn_msg += 'Using this specififed file name instead of the default "' + output_file_name + '"'
warn_msg += 'Using this specified file name instead of the default "' + output_file_name + '"'
cs_tools.cs_print_info(self._ClassName(), warn_msg)
else:
file_handler_settings.AddEmptyValue("file_name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def __TestArrayReceive(self, fct_ptr_to_test, file_name_fct_ptr, array_to_test):
# make sure that the file was deleted
self.assertFalse(os.path.isfile(array_file_name))

# writting a file with the wrong size, this should throw a proper error
# writing a file with the wrong size, this should throw a proper error
with open(array_file_name, 'w') as array_file:
array_file.write(str(array_size+2)+"\n")
with self.assertRaisesRegex(RuntimeError, 'The received size for array "{}" is different from what is expected:\n Expected size: {}\n Received size: {}'.format(array_file_name, array_size, array_size+2)):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def test_wrong_input_dim_scalar(self):
"dimension" : 2
}""")

with self.assertRaisesRegex(Exception, '"dimension" cannot be specifed for scalar variables!'):
with self.assertRaisesRegex(Exception, '"dimension" cannot be specified for scalar variables!'):
CouplingInterfaceData(settings, self.model)

def test_wrong_input_no_dim_vector(self):
Expand All @@ -144,7 +144,7 @@ def test_wrong_input_no_dim_vector(self):
"variable_name" : "DISPLACEMENT"
}""")

with self.assertRaisesRegex(Exception, '"dimension" has to be specifed for vector variables!'):
with self.assertRaisesRegex(Exception, '"dimension" has to be specified for vector variables!'):
CouplingInterfaceData(settings, self.model)

def test_wrong_input_variable_type(self):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CompressiblePerturbationPotentialFlowElement : public Element

// Constructors.

/// Default constuctor.
/// Default constructor.
/**
* @param NewId Index number of the new element (optional)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CompressiblePotentialFlowElement : public Element

// Constructors.

/// Default constuctor.
/// Default constructor.
/**
* @param NewId Index number of the new element (optional)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class EmbeddedCompressiblePotentialFlowElement : public CompressiblePotentialFlo

// Constructors.

/// Default constuctor.
/// Default constructor.
/**
* @param NewId Index number of the new element (optional)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class EmbeddedIncompressiblePotentialFlowElement : public IncompressiblePotentia

// Constructors.

/// Default constuctor.
/// Default constructor.
/**
* @param NewId Index number of the new element (optional)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class EmbeddedTransonicPerturbationPotentialFlowElement : public TransonicPertur

// Constructors.

/// Default constuctor.
/// Default constructor.
/**
* @param NewId Index number of the new element (optional)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class IncompressiblePerturbationPotentialFlowElement : public Element

// Constructors.

/// Default constuctor.
/// Default constructor.
/**
* @param NewId Index number of the new element (optional)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class IncompressiblePotentialFlowElement : public Element

// Constructors.

/// Default constuctor.
/// Default constructor.
/**
* @param NewId Index number of the new element (optional)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class TransonicPerturbationPotentialFlowElement : public Element

// Constructors.

/// Default constuctor.
/// Default constructor.
/**
* @param NewId Index number of the new element (optional)
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class KRATOS_API(COMPRESSIBLE_POTENTIAL_FLOW_APPLICATION) Define2DWakeProcess
///@name Member Variables
///@{

// The airfoil model part conatining the trailing edge
// The airfoil model part containing the trailing edge
ModelPart& mrBodyModelPart;
// Tolerance to avoid nodes laying exactly on the wake
const double mTolerance;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class KRATOS_API(COMPRESSIBLE_POTENTIAL_FLOW_APPLICATION) Define3DWakeProcess
///@name Member Variables
///@{

// The airfoil model part conatining the trailing edge
// The airfoil model part containing the trailing edge
ModelPart& mrTrailingEdgeModelPart;
ModelPart& mrBodyModelPart;
ModelPart& mrStlWakeModelPart;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
def AssembleTestSuites():
''' Populates the test suites to run.

Populates the test suites to run. At least, it should pupulate the suites:
Populates the test suites to run. At least, it should populate the suites:
"small", "nighlty" and "all"

Return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ namespace Kratos

/**
* BRIEF DOCUMENTATION OF THE USED UNIAXIAL SOFTENING BEHAVIOR IN COMPRESSION
* Entire documentation can be found in the the Phd Thesis of Massimo Petracca
* Entire documentation can be found in the Phd Thesis of Massimo Petracca
* << Computational Multiscale Analysis of Masonry Structures>>
*
* UNIAXIAL BEZIER COMPRESSION DAMAGE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ class KRATOS_API(CONSTITUTIVE_LAWS_APPLICATION) DamageDPlusDMinusMasonry2DLaw

/**
* BRIEF DOCUMENTATION OF THE USED UNIAXIAL SOFTENING BEHAVIOR IN COMPRESSION
* Entire documentation can be found in the the Phd Thesis of Massimo Petracca
* Entire documentation can be found in the Phd Thesis of Massimo Petracca
* << Computational Multiscale Analysis of Masonry Structures>>
*
* UNIAXIAL BEZIER COMPRESSION DAMAGE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
def AssembleTestSuites():
''' Populates the test suites to run.

Populates the test suites to run. At least, it should pupulate the suites:
Populates the test suites to run. At least, it should populate the suites:
"small", "nighlty" and "all"

Return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Kratos
{
}

//*******************************ASSIGMENT OPERATOR***********************************
//******************************ASSIGNMENT OPERATOR***********************************
//************************************************************************************

Constitutive3DLaw& Constitutive3DLaw::operator=(const Constitutive3DLaw& rOther)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ namespace Kratos
///@{

/**
* Material parameters are inizialized
* Material parameters are initialized
*/
void InitializeMaterial(const Properties& rProperties,
const GeometryType& rElementGeometry,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace Kratos
mpModel = rOther.mpModel->Clone();
}

//*******************************ASSIGMENT OPERATOR***********************************
//******************************ASSIGNMENT OPERATOR***********************************
//************************************************************************************

LargeStrain3DLaw& LargeStrain3DLaw::operator=(const LargeStrain3DLaw& rOther)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace Kratos
///@{

/**
* Material parameters are inizialized
* Material parameters are initialized
*/
void InitializeMaterial(const Properties& rProperties,
const GeometryType& rElementGeometry,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace Kratos
mpModel = rOther.mpModel->Clone();
}

//*******************************ASSIGMENT OPERATOR***********************************
//******************************ASSIGNMENT OPERATOR***********************************
//************************************************************************************

SmallStrain3DLaw& SmallStrain3DLaw::operator=(const SmallStrain3DLaw& rOther)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ namespace Kratos
///@{

/**
* Material parameters are inizialized
* Material parameters are initialized
*/
void InitializeMaterial(const Properties& rProperties,
const GeometryType& rElementGeometry,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace Kratos

}

//*******************************ASSIGMENT OPERATOR***********************************
//******************************ASSIGNMENT OPERATOR***********************************
//************************************************************************************

NewtonianFluid3DLaw& NewtonianFluid3DLaw::operator=(const NewtonianFluid3DLaw& rOther)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace Kratos
///@{

/**
* Material parameters are inizialized
* Material parameters are initialized
*/
void InitializeMaterial(const Properties& rProperties,
const GeometryType& rElementGeometry,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ namespace Kratos
mpModel = rOther.mpModel->Clone();
}

//*******************************ASSIGMENT OPERATOR***********************************
//******************************ASSIGNMENT OPERATOR***********************************
//************************************************************************************

StrainRate3DLaw& StrainRate3DLaw::operator=(const StrainRate3DLaw& rOther)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace Kratos
///@{

/**
* Material parameters are inizialized
* Material parameters are initialized
*/
void InitializeMaterial(const Properties& rProperties,
const GeometryType& rElementGeometry,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ namespace Kratos
{
}

//*******************************ASSIGMENT OPERATOR***********************************
//******************************ASSIGNMENT OPERATOR***********************************
//************************************************************************************

ConstitutiveModel& ConstitutiveModel::operator=(const ConstitutiveModel& rOther)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ namespace Kratos
const SizeType& GetVoigtSize () const {return mVoigtSize;};
const VoigtIndexType& GetVoigtIndexTensor () const {return mIndexVoigtTensor;};

//Acces non const Data
//Access non const Data
ConstitutiveLawData& rConstitutiveLawData () {return mConstitutiveLawData;};
MatrixType& rStrainMatrix () {return StrainMatrix;};
MatrixType& rStressMatrix () {return StressMatrix;};
Expand Down
Loading
Loading