# | Line 57 | Line 57 | |
---|---|---|
57 | #include "applications/staticProps/GofXyz.hpp" | |
58 | #include "applications/staticProps/P2OrderParameter.hpp" | |
59 | #include "applications/staticProps/SCDOrderParameter.hpp" | |
60 | + | #include "applications/staticProps/DensityPlot.hpp" |
61 | ||
62 | using namespace oopse; | |
63 | ||
# | Line 88 | Line 89 | int main(int argc, char* argv[]){ | |
89 | char* sele1Env= getenv("OOPSE_SELE1"); | |
90 | if (sele1Env) { | |
91 | sele1 = sele1Env; | |
92 | < | }else { |
92 | > | }else if (!args_info.scd_given) { |
93 | sprintf( painCave.errMsg, | |
94 | "neither --sele1 option nor $OOPSE_SELE1 is set"); | |
95 | painCave.severity = OOPSE_ERROR; | |
# | Line 103 | Line 104 | int main(int argc, char* argv[]){ | |
104 | char* sele2Env = getenv("OOPSE_SELE2"); | |
105 | if (sele2Env) { | |
106 | sele2 = sele2Env; | |
107 | < | } else { |
107 | > | } else if (args_info.density_given) { |
108 | > | sele2 = "select all"; |
109 | > | } else if(!args_info.scd_given && !args_info.density_given) { |
110 | sprintf( painCave.errMsg, | |
111 | "neither --sele2 option nor $OOPSE_SELE2 is set"); | |
112 | painCave.severity = OOPSE_ERROR; | |
# | Line 178 | Line 181 | int main(int argc, char* argv[]){ | |
181 | std::string sele3 = args_info.sele3_arg; | |
182 | analyser = new SCDOrderParameter(info, dumpFileName, sele1, sele2, sele3); | |
183 | } | |
184 | + | }else if (args_info.density_given) { |
185 | + | analyser= new DensityPlot(info, dumpFileName, sele1, sele2, maxLen, args_info.nrbins_arg); |
186 | } | |
187 | ||
188 | if (args_info.output_given) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |