7373list-projects :
7474 @echo " Sample projects: template biorobots-sample cancer-biorobots-sample cancer-immune-sample"
7575 @echo " celltypes3-sample heterogeneity-sample pred-prey-farmer virus-macrophage-sample"
76- @echo " worm-sample interaction-sample"
76+ @echo " worm-sample interaction-sample mechano-sample "
7777 @echo " "
7878 @echo " Sample intracellular projects: ode-energy-sample physiboss-cell-lines-sample cancer-metabolism-sample"
7979 @echo " "
@@ -93,7 +93,7 @@ template:
9393biorobots-sample :
9494 cp ./sample_projects/biorobots/custom_modules/* ./custom_modules/
9595 touch main.cpp && cp main.cpp main-backup.cpp
96- cp ./sample_projects/biorobots/main-biorobots .cpp ./main.cpp
96+ cp ./sample_projects/biorobots/main.cpp ./main.cpp
9797 cp Makefile Makefile-backup
9898 cp ./sample_projects/biorobots/Makefile .
9999 cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
@@ -102,7 +102,7 @@ biorobots-sample:
102102cancer-biorobots-sample :
103103 cp ./sample_projects/cancer_biorobots/custom_modules/* ./custom_modules/
104104 touch main.cpp && cp main.cpp main-backup.cpp
105- cp ./sample_projects/cancer_biorobots/main-cancer_biorobots .cpp ./main.cpp
105+ cp ./sample_projects/cancer_biorobots/main.cpp ./main.cpp
106106 cp Makefile Makefile-backup
107107 cp ./sample_projects/cancer_biorobots/Makefile .
108108 cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
@@ -129,7 +129,7 @@ celltypes3-sample:
129129heterogeneity-sample :
130130 cp ./sample_projects/heterogeneity/custom_modules/* ./custom_modules/
131131 touch main.cpp && cp main.cpp main-backup.cpp
132- cp ./sample_projects/heterogeneity/main-heterogeneity .cpp ./main.cpp
132+ cp ./sample_projects/heterogeneity/main.cpp ./main.cpp
133133 cp Makefile Makefile-backup
134134 cp ./sample_projects/heterogeneity/Makefile .
135135 cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
@@ -208,6 +208,13 @@ cancer-metabolism-sample:
208208 cp ./config/PhysiCell_settings.xml ./config/PhysiCell_settings-backup.xml
209209 cp ./sample_projects_intracellular/fba/cancer_metabolism/config/* ./config/
210210
211+ mechano-sample :
212+ cp ./sample_projects/mechano/custom_modules/* ./custom_modules/
213+ touch main.cpp && cp main.cpp main-backup.cpp
214+ cp ./sample_projects/mechano/main.cpp ./main.cpp
215+ cp Makefile Makefile-backup
216+ cp ./sample_projects/mechano/Makefile .
217+ cp ./sample_projects/mechano/config/* ./config/
211218
212219# early examples for convergence testing
213220
@@ -422,3 +429,25 @@ upgrade: $(SOURCE)
422429 mv -f PhysiCell/documentation/User_Guide.pdf documentation
423430 rm -f -r PhysiCell
424431 rm -f $(SOURCE )
432+
433+ # use: make save PROJ=your_project_name
434+ PROJ := my_project
435+
436+ save :
437+ echo " Saving project as $( PROJ) ... "
438+ mkdir -p ./user_projects
439+ mkdir -p ./user_projects/$(PROJ )
440+ mkdir -p ./user_projects/$(PROJ ) /custom_modules
441+ mkdir -p ./user_projects/$(PROJ ) /config
442+ cp main.cpp ./user_projects/$(PROJ )
443+ cp Makefile ./user_projects/$(PROJ )
444+ cp VERSION.txt ./user_projects/$(PROJ )
445+ cp ./config/* ./user_projects/$(PROJ ) /config
446+ cp ./custom_modules/* ./user_projects/$(PROJ ) /custom_modules
447+
448+ load :
449+ echo " Loading project from $( PROJ) ... "
450+ cp ./user_projects/$(PROJ ) /main.cpp .
451+ cp ./user_projects/$(PROJ ) /Makefile .
452+ cp ./user_projects/$(PROJ ) /config/* ./config/
453+ cp ./user_projects/$(PROJ ) /custom_modules/* ./custom_modules/
0 commit comments