Clippy lints
This commit is contained in:
		@@ -10,6 +10,7 @@ pub enum Evaluator {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl<D: Dimension> euler::eval::Evaluator<D> for Evaluator {
 | 
			
		||||
    #[allow(clippy::many_single_char_names)]
 | 
			
		||||
    fn evaluate(
 | 
			
		||||
        &self,
 | 
			
		||||
        t: Float,
 | 
			
		||||
 
 | 
			
		||||
@@ -79,6 +79,7 @@ pub struct EvaluatorConservation {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
impl<D: Dimension> euler::eval::Evaluator<D> for Evaluator {
 | 
			
		||||
    #[allow(clippy::many_single_char_names)]
 | 
			
		||||
    fn evaluate(
 | 
			
		||||
        &self,
 | 
			
		||||
        t: Float,
 | 
			
		||||
@@ -267,6 +268,7 @@ impl<D: Dimension> euler::eval::EvaluatorPressure<D> for EvaluatorPressure {
 | 
			
		||||
        })
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    #[allow(clippy::many_single_char_names)]
 | 
			
		||||
    fn p(
 | 
			
		||||
        &self,
 | 
			
		||||
        t: Float,
 | 
			
		||||
 
 | 
			
		||||
@@ -77,12 +77,12 @@ fn main() {
 | 
			
		||||
    } = config.into_runtime();
 | 
			
		||||
 | 
			
		||||
    let basesystem = system::BaseSystem::new(
 | 
			
		||||
        names.clone(),
 | 
			
		||||
        names,
 | 
			
		||||
        grids,
 | 
			
		||||
        0.0,
 | 
			
		||||
        operators,
 | 
			
		||||
        boundary_conditions,
 | 
			
		||||
        initial_conditions.clone(),
 | 
			
		||||
        initial_conditions,
 | 
			
		||||
        opt.output.clone(),
 | 
			
		||||
    );
 | 
			
		||||
    // System::new(grids, grid_connections, operators);
 | 
			
		||||
 
 | 
			
		||||
@@ -48,6 +48,7 @@ impl BaseSystem {
 | 
			
		||||
            output,
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    #[allow(clippy::many_single_char_names)]
 | 
			
		||||
    pub fn create(self) -> System {
 | 
			
		||||
        let fnow = self
 | 
			
		||||
            .grids
 | 
			
		||||
@@ -134,7 +135,7 @@ impl BaseSystem {
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            */
 | 
			
		||||
            parsing::InitialConditions::Vortex(vortexparams) => sys.vortex(0.0, &vortexparams),
 | 
			
		||||
            parsing::InitialConditions::Vortex(vortexparams) => sys.vortex(0.0, vortexparams),
 | 
			
		||||
            parsing::InitialConditions::Expressions(expr) => {
 | 
			
		||||
                let t = 0.0;
 | 
			
		||||
                for (grid, field) in sys.grids.iter().zip(sys.fnow.iter_mut()) {
 | 
			
		||||
@@ -413,7 +414,7 @@ impl integrate::Integrable for SingleThreadedSystem {
 | 
			
		||||
impl SingleThreadedSystem {
 | 
			
		||||
    pub fn vortex(&mut self, t: Float, vortex_params: &euler::VortexParameters) {
 | 
			
		||||
        for (f, g) in self.fnow.iter_mut().zip(&self.grids) {
 | 
			
		||||
            f.vortex(g.x(), g.y(), t, &vortex_params);
 | 
			
		||||
            f.vortex(g.x(), g.y(), t, vortex_params);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user