< Summary

Information
Class: Morpho25.Settings.SOR
Assembly: Morpho25
File(s): D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\SOR.cs
Line coverage
92%
Covered lines: 12
Uncovered lines: 1
Coverable lines: 13
Total lines: 52
Line coverage: 92.3%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity Line coverage
get_SORMode()100%1100%
.ctor()100%1100%
get_Title()100%1100%
get_Values()100%1100%
get_Tags()100%1100%
ToString()100%10%

File(s)

D:\a\Morpho\Morpho\project\Morpho\Morpho25\Settings\SOR.cs

#LineLine coverage
 1namespace Morpho25.Settings
 2{
 3    /// <summary>
 4    /// SOR class.
 5    /// </summary>
 6    public class SOR
 7    {
 8        /// <summary>
 9        /// If you active it pressure field is calculated via
 10        /// red-black-tree algorithm which allows
 11        /// parallel computation of pressure field.
 12        /// </summary>
 613        public Active SORMode { get; set; }
 14
 15        /// <summary>
 16        /// Create a new SOR object.
 17        /// </summary>
 18        /// <param name="mode">If you active it pressure field is calculated via
 19        /// red-black-tree algorithm which allows
 20        /// parallel computation of pressure field.</param>
 221        public SOR ()
 222        {
 223            SORMode = Active.YES;
 224        }
 25
 26        /// <summary>
 27        /// Title of the XML section
 28        /// </summary>
 129        public string Title => "SOR";
 30
 31        /// <summary>
 32        /// Values of the XML section
 33        /// </summary>
 134        public string[] Values => new[] {
 135            ((int)SORMode).ToString()
 136        };
 37
 38        /// <summary>
 39        /// Tags of the XML section
 40        /// </summary>
 141        public string[] Tags => new[] {
 142            "SORMode"
 143        };
 44
 45        /// <summary>
 46        /// String representation of SOR object.
 47        /// </summary>
 48        /// <returns>String representation.</returns>
 049        public override string ToString() => "Config::SOR";
 50    }
 51
 52}