From 640a7c54023a12abb7d4d541b6fcd063aa00137f Mon Sep 17 00:00:00 2001 From: Chris Geroux Date: Thu, 18 Apr 2024 16:50:05 -0300 Subject: [PATCH] Changed some wording --- _episodes/extending_types.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_episodes/extending_types.md b/_episodes/extending_types.md index db569d3..ae002a9 100644 --- a/_episodes/extending_types.md +++ b/_episodes/extending_types.md @@ -23,9 +23,9 @@ end type {: .fortran} Here `` is the name of a derived type to be extended, and `` is the name of the new derived type created by extending the parent derived type. -Our new 3 component vector however, doesn't need any new member variables so we don't need to add any new ones. However, by having a distinct derived data type for our 3 component vector will allow us to use specific procedures that work with it as apposed to the those for the more general vector, as we shall see shortly. +Our new 3 component vector however, doesn't need any new member variables. However, by having a distinct derived data type for our 3 component vector it will allow us to use specific procedures that work with it as apposed to the those for the more general vector and at the same time reuse common functionality between the two vector types. -Lets create a new `t_vector_3` derived type and a `create_size_3_vector` to create new ones. +Lets create a new `t_vector_3` derived type and a `create_size_3_vector` function to create new objects. ~~~ $ cp derived_types_init.f90 type_extension.f90