|
|
|
@ -106,7 +106,7 @@ class FortranProject(SampleImpl): |
|
|
|
|
self.name = options.name |
|
|
|
|
self.version = options.version |
|
|
|
|
|
|
|
|
|
def create_executable(self): |
|
|
|
|
def create_executable(self) -> None: |
|
|
|
|
lowercase_token = re.sub(r'[^a-z0-9]', '_', self.name.lower()) |
|
|
|
|
source_name = lowercase_token + '.f90' |
|
|
|
|
open(source_name, 'w').write(hello_fortran_template.format(project_name=self.name)) |
|
|
|
@ -115,7 +115,7 @@ class FortranProject(SampleImpl): |
|
|
|
|
source_name=source_name, |
|
|
|
|
version=self.version)) |
|
|
|
|
|
|
|
|
|
def create_library(self): |
|
|
|
|
def create_library(self) -> None: |
|
|
|
|
lowercase_token = re.sub(r'[^a-z0-9]', '_', self.name.lower()) |
|
|
|
|
uppercase_token = lowercase_token.upper() |
|
|
|
|
function_name = lowercase_token[0:3] + '_func' |
|
|
|
|