parameters: (self)
docstring: Method reading the refinement parameters passed from json file.
  
          Inputs:
docstring_summary: Method reading the refinement parameters passed from json file.
docstring_tokens: Method reading the refinement parameters passed from json file .
function: def SetRefinementParameters(self):
          """
          Method reading the refinement parameters passed from json file.
  
          Inputs:
  
  
          """
  
          with open(self.refinement_parameters_path,"r") as parameter_file:
              parameters = KratosMultiphysics.Parameters(parameter_file.read())
          if parameters.Has("metric"):
              self.custom_metric_refinement_parameters = parameters["metric"]
          elif parameters.Has("hessian_metric"):
              self.custom_metric_refinement_parameters = parameters["hessian_metric"]
              warnings.warn(
                  (
                      "The metric settings are passed through the \"hessian_metric\" key."
                      " This is deprecated and will be removed soon."
                      " Instead, you should pass the metric settings using the \"metric\" key."
                  ),
                  FutureWarning,
              )
          else:
              raise Exception("Refinement parameters, set by refinement_parameters_path, does not contain the required key \"metric\".")
          if parameters.Has("remeshing"):
              self.custom_remesh_refinement_parameters = parameters["remeshing"]
          elif parameters.Has("refinement_mmg"):
              self.custom_remesh_refinement_parameters = parameters["refinement_mmg"]
              warnings.warn(
                  (
                      "The remeshing settings are passed through the \"refinement_mmg\" key."
                      " This is deprecated and will be removed soon."
                      " Instead, you should pass the metric settings using the \"remeshing\" key."
                  ),
                  FutureWarning,
              )
          else:
              raise Exception("Refinement parameters, set by refinement_parameters_path, does not contain the required key \"remeshing\".")
function_tokens: def SetRefinementParameters ( self ) : with open ( self . refinement_parameters_path , "r" ) as parameter_file : parameters = KratosMultiphysics . Parameters ( parameter_file . read ( ) ) if parameters . Has ( "metric" ) : self . custom_metric_refinement_parameters = parameters [ "metric" ] elif parameters . Has ( "hessian_metric" ) : self . custom_metric_refinement_parameters = parameters [ "hessian_metric" ] warnings . warn ( ( "The metric settings are passed through the \"hessian_metric\" key." " This is deprecated and will be removed soon." " Instead, you should pass the metric settings using the \"metric\" key." ) , FutureWarning , ) else : raise Exception ( "Refinement parameters, set by refinement_parameters_path, does not contain the required key \"metric\"." ) if parameters . Has ( "remeshing" ) : self . custom_remesh_refinement_parameters = parameters [ "remeshing" ] elif parameters . Has ( "refinement_mmg" ) : self . custom_remesh_refinement_parameters = parameters [ "refinement_mmg" ] warnings . warn ( ( "The remeshing settings are passed through the \"refinement_mmg\" key." " This is deprecated and will be removed soon." " Instead, you should pass the metric settings using the \"remeshing\" key." ) , FutureWarning , ) else : raise Exception ( "Refinement parameters, set by refinement_parameters_path, does not contain the required key \"remeshing\"." )