File tree Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Expand file tree Collapse file tree 5 files changed +17
-8
lines changed Original file line number Diff line number Diff line change 5050
5151 - name : Setup Ubuntu
5252 if : matrix.os == 'ubuntu' && matrix.intel == false
53- run : sudo apt install tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev
53+ run : |
54+ sudo apt update -y
55+ sudo apt install -y tar wget make cmake gcc g++ python3 python3-dev "openmpi-*" libopenmpi-dev
5456
5557 - name : Setup Ubuntu (Intel)
5658 if : matrix.os == 'ubuntu' && matrix.intel == true
Original file line number Diff line number Diff line change 230230 cmake_patch=$( echo $cmake_verstr | tr ' .' ' \n' | sed -n 3p)
231231 cmake_version=" $( printf %05d%05d%05d $cmake_major $cmake_minor $cmake_patch ) "
232232
233- MFC_CMAKE_MIN_VERSTR=$( cat CMakeLists.txt | head -n 1 | sed ' s/[^0-9,.]*//g' )
233+ MFC_CMAKE_MIN_VERSTR=$( cat CMakeLists.txt | grep cmake_minimum_required | head -n 1 | sed ' s/[^0-9,.]*//g' )
234234 MFC_CMAKE_MIN_MAJOR=$( echo $MFC_CMAKE_MIN_VERSTR | tr ' .' ' \n' | head -n 1)
235235 MFC_CMAKE_MIN_MINOR=$( echo $MFC_CMAKE_MIN_VERSTR | tr ' .' ' \n' | head -n 2 | tail -n 1)
236236 MFC_CMAKE_MIN_PATCH=0
@@ -379,6 +379,8 @@ if [ ! -f "$(pwd)/build/venv/bin/activate" ]; then
379379 fi
380380
381381 ok " Created a$MAGENTA Python$COLOR_RESET virtual environment (venv)."
382+
383+ rm " $( pwd) /build/requirements.txt" > /dev/null 2>&1 || true
382384fi
383385
384386
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def calculate_layout(n):
114114
115115 fig , axes = plt .subplots (rows , cols , figsize = PLOT_DIMS )
116116
117- for i , name in enumerate (df .keys ()[ 1 :] ):
117+ for i , name in enumerate (VARS .keys ()):
118118 print (f" * Plotting { name } ..." )
119119 plot (name , t_step , axes [i % rows , i // rows ])
120120
Original file line number Diff line number Diff line change 11import os , typing , dataclasses
22
3- from .state import ARG
4- from .printer import cons
5- from . import common
3+ from .state import ARG
4+ from .printer import cons
5+ from . import common
6+ from .run .input import MFCInputFile
67
78
89@dataclasses .dataclass
@@ -189,6 +190,9 @@ def build_target(name: str, history: typing.List[str] = None):
189190 if common .system (configure , no_exception = True ) != 0 :
190191 raise common .MFCException (f"Failed to configure the [bold magenta]{ name } [/bold magenta] target." )
191192
193+ if not target .isDependency and ARG ("command" ) == "build" :
194+ MFCInputFile ("" , "" , {}).generate (name , bOnlyFPPs = True )
195+
192196 common .system (build , exception_text = f"Failed to build the [bold magenta]{ name } [/bold magenta] target." )
193197 common .system (install , exception_text = f"Failed to install the [bold magenta]{ name } [/bold magenta] target." )
194198
Original file line number Diff line number Diff line change @@ -221,8 +221,9 @@ def __generate_post_fpp(self) -> None:
221221 pass
222222
223223 # Generate case.fpp & [target_name].inp
224- def generate (self , target_name : str ) -> None :
225- self .__generate_inp (target_name )
224+ def generate (self , target_name : str , bOnlyFPPs = False ) -> None :
225+ if not bOnlyFPPs :
226+ self .__generate_inp (target_name )
226227
227228 cons .print ()
228229
You can’t perform that action at this time.
0 commit comments